13 - m1 - Linux Basic Commands - Edureka VM PDF
13 - m1 - Linux Basic Commands - Edureka VM PDF
13 - m1 - Linux Basic Commands - Edureka VM PDF
eg: ls /home/edureka
cp cp src_file_path
/destination_directory_path Copy files
mv src _file_path
/destination_directory_path Renames a file or moves
mv it from one directory to
eg: mv myfile.txt /newdirectory another directory
mv current_filename new_filename
rm file_path
rm Delete files
eg: rm /home/edureka/Desktop/file_name
ln file_path /destination_directory_path
ln Link files
eg: ln student /home/edureka/Desktop
mkdir /new_directory_path
rmdir /directory_path
rmdir
eg: rmdir Delete directory
/home/edurekaDesktop/directory
cat /file_path
cat View files
eg: cat /home/edureka/file_name
nl /file_path
nl Number lines
eg: nl studentRoll
gedit /file_path
gedit Text Editor
eg: gedit studentRoll
stat /file_path Display file
stat attributes(properties)
eg: stat studentRoll
wc /file_path
wc Count bytes/words/lines
eg: wc studentRoll