tee: Direct output to standard output and File
With linux pipes, you can direct the output of one program as an input to the other. But using pipes, you can only direct the output to another program. But if you wish to direct the output to the standard output as well as to a file, you can still use tee. Take for example, [...]
How to set System Time using NTP?
NTP is helpful to synchronize system time of computer over a network. This is very useful if you have multiple computers and you require all the computers to have uniform time. You can start the NTP server in one of the machines and synchronize the time across all the machines using this server. This is [...]
How to install KDE in Ubuntu?
Ubuntu by default has the GNOME desktop. But if you want to use KDE, you must Install Kubuntu. There are two ways by which you can do this. Replace Ubuntu with Kubuntu. Install Kubuntu within Ubuntu The second option is the best one because you can experiment with both GNOME and KDE. Let’s explore how [...]
How to install apache in Ubuntu?
Apache can be installed in Linux using source. It can be easily installed in Ubuntu using the following command $ sudo apt-get install apache2 But after installation, you can verify that in the browser. Enter http://localhost/. If everything is fine, the page can be displayed with no connection errors. To start/restart apache $ sudo /etc/init.d/apache2 [...]
How to install maven in Linux?
Installing maven in Ubuntu is as simple as executing the following command $ sudo apt-get install maven2 Note that you must be connected to the internet to execute the command
How to install log4cpp from sources?
log4cpp is used for logging purposes in C++. To install log4cpp in Linux is as simple as installing some simple packages like liblog4cpp5 and liblog4cpp5-dev. But if you want to install log4cpp from sources, you need to follow the following procedures. Using these steps, you can easily install log4cpp in Mac and Linux (or any [...]
find vs locate: Save your time
Both the commands: find and locate serve the same purposes- find file names. Then which one is a better option to search for files. But before moving on to telling the difference, let me tell you how locate command works The working of locate command. locate makes use of a database for its proper execution. [...]