0% found this document useful (0 votes)
4 views

Linux Commands

Uploaded by

Nandini Hazarika
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Linux Commands

Uploaded by

Nandini Hazarika
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

ls ( list content of current directory )- list of all directories in current directory

pwd ( print working directory )- which directory I’m located in- right now in home directory

cd ( used for navigation )- eg: cd downloads -go to downloads folder in the home directory

cd .. ( back to previous directory )

cd / ( back to root directory )- home directory is a subpart of root directory

cp ( copy files )—cp test testcopy( cp name_of_file_you_want_to_copy new_name_for_folder)

rm ( remove file)—rm testcopy

If we want to copy the file to a different folder –cd test /home/nandini/downloads( the test file will
be in downloads)

mkdir (make new directory )—mkdir testfolder

rmdir (remove directory)—rmdir testfolder

rm -r folder name (to delete non empty folder)— rm -r test

clear (clears the terminal screen)

man ls (displays the manual for any command that can be run in terminal)- basically what the
command does

You might also like