The famous selection of Linux bash commands
Jump to navigation
Jump to search
User Management
usermod - modify user settings. Add a user to a group
usermod -a -G <examplegroup> <exampleusername>
E.g. add user geek to the sodo group:
usermod -a -G sudo geek
File System Tools
du: disk usage - Summarize disk usage of the set of FILEs, recursively for directories.
du -d2 -h
df - Show information about the file system on which each FILE resides, or all file systems by default.
df -h
ssh - Secure Shell
Connect to a remote host
ssh <user>@<host name / ip address>
Run a command on the remote host
ssh <user>@<host name / ip address> '<command to run>'