Chapter 1+2 Flashcards
ssh remoteuser@remotehost
Use Secure Shell (SSH) to log in to the remote Linux system remotehost as the user remoteuser
ssh -i mylab.pem remoteuser@remotehost
Specify the user’s private key file mylab.pem
exit command
terminate current shell session
passwd command
change the password for current user
whoami
get username
date
get date
date +[??]
Get the date in a specific format
cat file
view contents of a file
less file
view contents of a file page by page
head file
display the first 10 lines of a file
tail file
display last 10 lines of a file
head -n 15 file
display the first 15 lines of a file
head -n 20 file
display the last 20 lines of a file
wc -l file
display number of lines in a file
wc -w file
display the number of words in a file