From the course: Complete Guide to Navigating Linux: Working with Users, Files, and Networks

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Command overview

Command overview

- In this lesson we have seen quite a few commands. Let's have a look at them. Whoami, showing your current username, and sudo allows you to run commands with escalated privileges. Id is useful if you want to see your group membership, or for another user, other user group membership. Su - allows you to open a shell as a different user, which is convenient for testing. Then we have seen useradd and groupadd for adding users and group. And usermod and groupmod for modifying users and groups. And userdel and groupdel for deleting users as well as groups. Passwd can be used to manage passwords. And then we have seen chown for change ownership. Relevant if you want to set permissions on files. Chgrp is changing the file group owner. And chmod is changing the actual permissions. Umask is a setting that defines your default permissions, and touch is a convenience command that allows you to create empty files, useful for testing writeability. Ps will list processes, and top will give a nice…

Contents