Linux Shell or “Terminal”
A shell is a program that receives commands from the user and gives it to the OS to process, and it shows the output. Linux's shell is its main part. Its distros come in GUI (graphical user interface), but basically, Linux has a CLI (command line interface).
Linux Basic Commands
‘pwd’ command prints the absolute path to current working directory.
$ pwd /home/infomax
Displays the calendar of the current month.
This command will echo whatever we provide it.
$ echo "infomaxacademy.com" infomaxacademy.com
Displays current time and date.
$ date Fri Jul 6 01:07:09 IST 2012
This command clears the screen.
Linux Filesystem commands
Changing Directories (CD) Command
$ cd [path-to-directory] $ cd /usr/share/
Listing File And Directories Command
$ ls [files-or-directories]
List files and/or directories. If no argument is given, the contents of current directory are shown.
Creating/Deleting files and directories
To create a directory, the ‘mkdir’ command is used.
$ mkdir olevel
To remove a directory, the 'rm' command is used