Posts

Showing posts with the label Advancing with the terminal

COMPILING IN UBUNTU

COMPILING IN UBUNTU If you are a moderately experienced Linux user you might have come across the word “ compiling”. Compiling is done to install a software from the source. You can get most of the software from the software-center and other repositories. You need to compile only if the version in your software-center is old and hasn't been updated even though your system supports it. Now, let's learn how to compile things from the source. 1. PREPARING YOUR SYSTEM FOR BUILDING PACKAGES: In order to compile we need some tools. By default, Ubuntu doesn't come with these tools. So we need to install these tools. Let's do this the easy way. Open a terminal by pressing CTRL+ALT+T or search for it in the dash. Now type the following in the terminal: sudo apt-get install build-essential checkinstall And since you may want to get code from some projects with no released version, you should install appropriate version management software. So, type the following in...

Advancing with the terminal

Advancing with the terminal In the previous post we discussed about the basics of the terminal. In this post I will tell you about advanced commands that can be used in the terminal. System Information Commands: These commands are used to know information about the system.        df :      The df command displays file system usage for all the  mounted partitions. df –h produces a more readable output in Megabytes (M) and Gigabytes (G). [-h means human-readable]. ¨     du :   The du command displays the disk usage for a directory. For more readable output you can use du –sh. ¨     free : The   free command displays the free and used memory in the system. Free –m will give the output in Megabytes which is more readable. ¨     top : The top command   displays information on your Linux system, running processes and system resources, including CPU, RAM & swap usage and total numbe...