Linux Commands Flashcards
Whoami
returns the current user name
pwd
finds the current system location
uname
gets information about the operating system
ls
list items in the directory and also shows the file permissions
ls -la -a
list all hidden files
uname -v
version
uname - a
all
uname -o
displays OS information
cd ~/
navigates to the home directory
rm/tmp/tmp*
- anything in the temp directory delete it
ls -lR
cache files
ls -lR .cache/
clears cache
.bash_history
only contains the first lines of the history command
echo .bash_history
history -c
To hide the history
history
shows all commands you have used
chmod
setting permissions
chown
changing ownership
cd/home/[your user]/Desktop
to navigate to your desktop with a full path
cd ../../../
return to the root directory
ls -lR .cache/
Recursively list the contents of the .cache directory
rm -rf .cache/*
delete all the contents without deleting .cache
append
to append a file
bye
terminate connection
cd
change directory