Useful SSH commands that you should know

Useful SSh commands that you should know

SSH commands for folders/directories

To nevigate to a folder

#cd /folder/

Find size of a folder

#du -msh /folder
Result: 333MB

To delete a folder including it's all contents

#rm -fr /folder

List the content in a folder

Nevigate to folder with
#cd /folder/
and
#ls

To move a folder

#mv /old-folder1 /new-folder2

Applying chmod on a folder

#chmod 755 /folder

List files with size in a directory

du -m filename
du -h
ncdu
du -msh FolderName