Linux How to Get the Size of a Directory on Linux To get the size of a directory, on Linux, we can run this command: du -sh /path/to/directory/ du is short for "disk usage". Here's an example. To see the size of the /usr/bin/ directory we would run this command: du -sh /usr/bin/
Linux How to Rename a File on Linux The command to rename a file on Linux-based operating systems is: mv old_name new_name That's if the file is located in our current directory. Not in the current directory? Then we first have to "move" there with the cd command. Here's a