Useful SSH commands that you should know
- Naqeeb Ul Rehman
- March 7, 2017
- 599
SSH commands for folders/directories
To nevigate to a folder
#cd /folder/Find size of a folder
#du -msh /folderResult: 333MB
To delete a folder including it's all contents
#rm -fr /folderList the content in a folder
Nevigate to folder with#cd /folder/
and
#ls
To move a folder
#mv /old-folder1 /new-folder2Applying chmod on a folder
#chmod 755 /folderList files with size in a directory
du -m filenamedu -h
ncdu
du -msh FolderName