tut 1 Flashcards
man date
gives the access to information like the manual on how to obtain the dates and timings, etc.
date
mon 19 aug 2024 09:23:56 AM +08
date –help
clear
deletes everything
date +%R
09:29
provides 24hr time
date +%x
19/08/2024
history
shows the history of the commands used
!5
uses the 5th command under the history list
whoami
ubuntu
(shows the current log in user)
sudo su -
switch to the privileged user/ system administrator
cat/ etc/passwd
contains the user name and info
cat/ etc/shadow
stores the info for the password of the file
what do you do if u want to access a file with a password as a system administrator?
sudo cat/ etc/shadow
file/ etc/passwd
ASCII text
(Tells us what type of file it is)
ls
lists down the directories and files in the current working directory