linux7 Flashcards
id command
lets you know if your the root user or not which always 0
to create a user
useradd(name)
how to shutdown from the new user acct
sudo /sbin/shutdown -r 15
15 stands for 15 minutes
visudo
this command gets you into sudoers file so you can edit
end key
curser goes to the end of the paragraph
O command in the sudo user options
insert command
ALL
meaning you get all permissions
To get out of insert press what
escape button
what do you press to get out of sudo edit/insert
colane then type the command wq
sudo shutdown -c
exit out of shutdown from the user
sudo useradd -D
shows us the setting of that new user
what command lets you manage user environment settings?
etc/login.defs file
what does ls -a/etc/skel do
look at what files is being copied when a new directory is being made
how to view the contents of the new user
cat /etc/passwd