Skip to main content

Basic commands of Linux

Linux has made a very good progress with the GUI (Graphical User Interface). But the traditional UNIX environment is a command-line interface (CLI) where you type the commands in a terminal.
Mostly you can manage to do things using the GUI but if you want to become a power user or make your Linux powerful you must use the command-line. There are many varieties of Linux, but almost all of them use similar commands that can be entered from a command-line interface terminal.

Opening a Terminal:

To open a terminal in Ubuntu follow these steps:

In Unity:

Open dash and type terminal
Dash-> More Apps-> Accessories-> Terminal

In Gnome

Open the activities and search for terminal

Applications menu-> Accessories-> Terminal.

You can also open a terminal by pressing CTRL+ALT+T keys.
Now after opening the terminal let's get familiar with some commands.

File & Directory Commands

  1. The tilde (~) symbol stands for your home directory. If you are user, then the tilde (~) stands for /home/user
  2. ls command gives you the list of all files in your directory.
  3. cd command allows you to change your working directory.
    For example to change into the root directory you need to type cd / in the terminal.
    To change to your home directory, use "cd" or "cd ~".
  4. cp command is useful to make a copy of a file.
    cp [OPTION]... [-T] SOURCE DEST
  5. mv command will move a file to a different location or will rename a file.
      mv [OPTION]... [-T] SOURCE DEST
      mv [OPTION]... -t DIRECTORY SOURCE...

  1. rm: Use this command to remove or delete a file in your directory.
  2. rmdir command will delete an empty directory. To delete a directory and all of its contents recursively, use rm -r instead.
  3. mkdir command will allow you to create directories.
    For example mkdir foo will create a folder named foo.
  4. man command will show you the manual page for a particular command.
    For example man mv will show the manual page of mv command.
  5. sudo command is used to perform file operations on files that the Root User would only be allowed to change. You must use the sudo command very carefully!

Popular posts from this blog


Most of you who have a Huawei USB modem (data card) might have tried to install mobile partner (dash board) in Linux. Here I will show you how to install mobile partner in Linux. First, you have to copy the folder called Linux in the data card. The files in the data card are not accessible from Linux so copy them from Windows. Now right click the file “install” in the “Linux” folder. Go to the permissions tab and select the check box beside Allow executing as a program. Now open a terminal by pressing CTRL + ALT + Tkeys. Change the working directory to the folder “Linux” by using “cd <path to folder>”. Now type ./install. If you had installed this software in your system before, you will get a prompt: "The software is exist, do you want overwrites? ([Y]/[N])", enter "y" to overwrites or "n" to exit. If you do not had installed this software in your system before, you will get a prompt: "Please input the install path[/usr/local/Mobile_Partner]:"…

How to install OpenVAS 7 in Ubuntu

OpenVAS is a framework of several services and tools offering a comprehensive and powerful vulnerability scanning and vulnerability management solution.

This is a guide for installing OpenVAS in Ubuntu. 


First we need to prepare our system for installation of OpenVAS. Open a terminal and type the following command:

sudo apt-get install build-essential bison flex cmake pkg-config libglib2.0-0 libglib2.0-dev libgnutls26 libgnutls-dev libpcap0.8 libpcap0.8-dev libgpgme11 libgpgme11-dev doxygen libuuid1 uuid-dev sqlfairy xmltoman libsqlite3-0 libsqlite3-dev libxml2-dev libxslt1.1 libxslt1-dev xsltproc libmicrohttpd-dev libldap-2.4-2 libldap2-dev


Now we need to download the OpenVAS source packages from the OpenVAS website. You can download it from the the website or you can use the terminal to download the files using the following commands:  

mkdir openvas-srccd openvas-src/wget http://wald.inteva…

How to setup a wifi-hotspot in Ubuntu: The terminal way.

Ubuntu has a "Use as hotspot" mode. But it creates a n ad-hoc network only.Wireless hotspots aren't same as ad hoc networks. Significant difference is there. In short, ad hoc networks aren't supported in most Android, Windows Phone and Blackberry devices (and may be iOS devices too) whereas AP mode Wi-Fi hotspots are.

              It is really simple and easy to setup a hotspot in Ubuntu. We use a tool called ap-hotspot. To install it open a terminal and type the following:

sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install ap-hotspot
             Next, to start the hotspot type the following in a terminal:
sudo ap-hotspot start
It asks you which adapter's internet you want to share, name of the network, password, etc. in an interactive manner. To stop the hotspot type the following n the terminal :
sudo ap-hotspot stop
To configure it type the following in the terminal :
sudo ap-hotspot configure