How to Setup Browsersync for Web Development in Ubuntu? Last Updated : 20 Jul, 2020 Comments Improve Suggest changes Like Article Like Report BrowserSync is an automation tool which is used extensively in web development. This tool makes our testing and tweaking faster by synchronizing file changes and interactions across many devices. Features of BrowserSync. Live reloading Interaction synchronization Simulate slower connections URL history Compatible with task runners like GULP and Grunt Work across many operating systems Working of BrowserSync If you lack a server setup, BrowserSync creates a small server. Otherwise, it can hook into your server and act as a proxy. After that, it adds a javascript file on each of the pages. This file uses WebSockets to establish a communication between the client and server to watch changes to your code or browser action. And as soon as an action is detected by browsersync it reloads the page. Installing BrowserSync BrowserSync is an npm package hence you have to make sure that Node.js is installed. To install BrowserSync, just open the terminal and execute the following command. sudo npm install -g browser-sync To check if BrowserSync is installed, enter the following command. browser-sync --version Using BrowserSync Go to the root of your project directory run the following command. browser-sync start --server --files "*.html, css/*.css" After the execution of the command, it triggers the default browser serving the directories root file. Comment More infoAdvertise with us Next Article How to Setup Browsersync for Web Development in Ubuntu? amalchandranmv Follow Improve Article Tags : Articles Linux-Unix Web Technologies HTML CSS Node.js How To +3 More Similar Reads SQL Joins (Inner, Left, Right and Full Join) SQL joins are fundamental tools for combining data from multiple tables in relational databases. Joins allow efficient data retrieval, which is essential for generating meaningful observations and solving complex business queries. Understanding SQL join types, such as INNER JOIN, LEFT JOIN, RIGHT JO 6 min read JavaScript Tutorial JavaScript is a programming language used to create dynamic content for websites. It is a lightweight, cross-platform, and single-threaded programming language. It's an interpreted language that executes code line by line, providing more flexibility.JavaScript on Client Side: On the client side, Jav 11 min read Web Development Web development is the process of creating, building, and maintaining websites and web applications. It involves everything from web design to programming and database management. Web development is generally divided into three core areas: Frontend Development, Backend Development, and Full Stack De 5 min read HTML Tutorial HTML stands for HyperText Markup Language. It is the standard language used to create and structure content on the web. It tells the web browser how to display text, links, images, and other forms of multimedia on a webpage. HTML sets up the basic structure of a website, and then CSS and JavaScript 11 min read React Interview Questions and Answers React is an efficient, flexible, and open-source JavaScript library that allows developers to create simple, fast, and scalable web applications. Jordan Walke, a software engineer who was working for Facebook, created React. Developers with a JavaScript background can easily develop web applications 15+ min read JavaScript Interview Questions and Answers JavaScript (JS) is the most popular lightweight, scripting, and interpreted programming language. JavaScript is well-known as a scripting language for web pages, mobile apps, web servers, and many other platforms. Both front-end and back-end developers need to have a strong command of JavaScript, as 15+ min read React Tutorial React is a JavaScript Library known for front-end development (or user interface). It is popular due to its component-based architecture, Single Page Applications (SPAs), and Virtual DOM for building web applications that are fast, efficient, and scalable.Applications are built using reusable compon 8 min read Linux Commands Cheat Sheet Linux, often associated with being a complex operating system primarily used by developers, may not necessarily fit that description entirely. While it can initially appear challenging for beginners, once you immerse yourself in the Linux world, you may find it difficult to return to your previous W 13 min read Domain Name System (DNS) DNS is a hierarchical and distributed naming system that translates domain names into IP addresses. When you type a domain name like www.geeksforgeeks.org into your browser, DNS ensures that the request reaches the correct server by resolving the domain to its corresponding IP address.Without DNS, w 8 min read grep command in Unix/Linux The grep command in Unix/Linux is a powerful tool used for searching and manipulating text patterns within files. Its name is derived from the ed (editor) command g/re/p (globally search for a regular expression and print matching lines), which reflects its core functionality. grep is widely used by 7 min read Like