Linux Commands

Category: Education

Presentation Description

No description available.


Presentation Transcript

Slide 1:


Basic Commands :

Basic Commands Cd mkdir mv Cp Date Cat Rm clear

cd :

cd The cd command is used to change the current directory (i.e., the directory in which the user is currently working) in Linux. syntax is : cd [option] [directory]

mkdir :

mkdir For make directories Syntax is : mkdir [OPTION] DIRECTORY Example : mkdir abc


mv change the name of a directory Type mv followed by the current name of a directory and the new name of the directory. Ex: mv testdir newnamedir

cp :

cp Copy one file into another. cp  myfile yourfile Copy the files "myfile" to the file "yourfile" in the current working directory. This command will create the file "yourfile" if it doesn't exist. It will normally overwrite it without warning if it exists.

date :

date Display or change the date & time Syntax : date [ OPTION ]... [ +FORMAT ]


cat cat - concatenate files and print on the standard output Syntax : cat file1 file2 This is called concatenation, which means that a content of both files is concatenated into a single output.


rm remove files or directories Syntax : rm [OPTION]... FILE... Options : -i, --interactive -f, --force -r, -R, --recursive


clear clear - clear the terminal screen clear clears your screen if this is possible. It looks in the environ- ment for the terminal type and then in the terminfo database to figure out how to clear the screen Syntax : clear

Slide 11:


authorStream Live Help