Sunday, August 12 2018

15 Most Important Ubuntu Commands

In this article we have explained about 15 Most Important Ubuntu Commands for beginners. Ubuntu is the fastest operating system in performance. In compared to windows is 1 percent of Ubuntu. Mostly developers are prefer work their development works in ubuntu.



Here explained some basic terminal commands are

sudo (Super User DO)

Ubuntu allows you to execute commands with administrative privileges like “Run as Administrator” in Windows.

 $ sudo su


It is used to install, update, upgrade and remove any package.

 $ sudo apt-get install <package name>
 $ sudo apt-get update
 $ sudo apt-get upgrage

ls (List)

List of all files and folders in current working directory.

$ ls // List all files

$ ls -ltr // List all files including if hidden files

cd (Change Directory)

cd <your directory>

pwd (Print working directory)

It is display full path name of the current working directory

 $ pwd

cp (Copy)

Ubuntu allows you to copy a file and you can specify that new file location path and existing file location path

 $ cp a.txt b.txt

mv (Move)

Ubuntu allows you to move files from one directory to another directory

 $ mv sample.txt sample2.txt

rm (Remove)

rm command use to remove specific file or directory

 $ rmdir <folder name>
 $ rm -f <file name> // f - force


It is use to make a directory in specific location

 $ mkdir <folder name>


This command to show all your previous commands in the history limit

 $ history

df (Display filesystem)

This command displays information about disk space usage details.

du (Directory usage) 

This command displays the size of a directory and sub directories.

chmod (Change Mode)

$ chmod -R 777 your_directory // Complete readable, writeable and executable by everyone

$ chmod -R 755 your_directory // Complete readable, writeable and executable by owner

chown (Change Mode)

$ chown username:groupname directory
$ chown -R root:test /var/lib/php/session


This command use to show a “manual page”.

Share Your Thoughts


I’m Blogger and Programming Blog, Tutorials, PHP, MySQL, jQuery, Laravel, Wordpress and Codeigniter