Bash Tutorial

Check file size:

du -sh /some/folder

-h for the human readable format, -s for grand total size of the folder.

Create a file:


create a folder:

mkdir some/folder/

Delete a file:


delete a folder

rm -r some/

Rename or move a folder:

mv source/directory/ target/directory/

Copy a file:

cp some/folder/ /new/location/

copy a folder:

cp -r some/folder/ /new/location/