Linux Commands

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

‘pwd’ command prints the absolute path to current working directory.

$ pwd
/home/infomax

cal command

Displays the calendar of the current month.

$ cal

echo command

This command will echo whatever we provide it.

 $ echo "programmingtrick.com"
infomaxacademy.com

date command

Displays current time and date.

 $ date
Fri Jul 6 01:07:09 IST 2012

clear command

This command clears the screen.

$ clear

 Linux Filesystem commands

Changing Directories  (CD) Command

$ cd [path-to-directory]
$ cd /usr/share/ 

Listing File And Directories Command

ls Command

$ ls [files-or-directories] 

List files and/or directories. If no argument is given, the contents of current directory are shown.

$ ls 

Creating/Deleting files and directories

mkdir command

To create a directory, the ‘mkdir’ command is used.

$ mkdir olevel 

rm Command

To remove a directory, the 'rm' command is used

rmdir directoryname


Programs

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad