Linux Review Flashcards
(27 cards)
Where is users info
Etc/passwd
How to change a user shell
Usermod -s
How to change comment
usermod -c
How to delete a user
userdel
How to lock a user acct
usermod -L
How to search files or directory and format to do so
find destination -name “ “
Awk format
awk ‘{ print $1 }” file
How to get rid of duplicates
uniq
What is $NF
Print last part of an entry
How to search lines in a file or list and what is the format
grep word file
What is the access log
Incoming requests to a web server
What log shows connections to a server
sshlog
How to set numbers in vim
:number line
How to switch modes in vim
Etc
How to exit and save in vim
:wq
How to exit vim without saving
:w
How to add a user in linux
useradd
What does tar mean
Taped archive
What log records installations, upgrades, removal, or config updates of software packages
dpkg log
What is tar -cf
regular tar
What is tar -xf
Extract files
What is tar - tf
See contents without extracting
What is tar -czf
gzip