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
cdup
go to parent directory
close
end session
delete
delete a file
get
receive a file
apt install vsftpd
To install FTP server
sed
a command in bash scripting that is used to replace words. the command runs a search and deletes and replaces words
set
allows users to change one variable or string to another.
run
It is used for any file that contains startup information for a command.
echo
prints the set content as an output to the user
cat
prints all content to the terminal