The famous selection of Linux bash commands: Difference between revisions

From chriesibaum wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
= User Management =
'''usermod''' - modify user settings. Add a user to a group
<syntaxhighlight lang="bash">
usermod -a -G <examplegroup> <exampleusername>
</syntaxhighlight>
E.g. add user geek to the sodo group:
<syntaxhighlight lang="bash">
usermod -a -G sudo geek
</syntaxhighlight>
= File System Tools =
= File System Tools =
'''du: disk usage''' - Summarize disk usage of the set of FILEs, recursively for directories.
'''du: disk usage''' - Summarize disk usage of the set of FILEs, recursively for directories.

Revision as of 14:56, 13 September 2021

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