Kali Linux Commands Flashcards
What does ‘echo’ do ?
Output any text that we provide
What command outputs any text that we provide ?
echo
what does ‘whoami’ do ?
Find out what user we’re currently logged in as!
What command lets us know what user we are currently logged in as ?
whoami
What does ‘ls’ do ?
listing
What is the command for listing ?
ls
what does ‘cd’ do ?
change directory
What is the command to change directory ?
cd
What does ‘cat’ do ?
concatenate
What is the command to concatenate ?
cat
What is the command to print the working directory ?
pwd
What does ‘pwd’ do ?
Print Working Directory
How can you list the contents of a directory without having to navigate to it
‘ls’ and the name of the directory
e.g ‘ls my documents’
What does the concatenate command do ?
Output the content of a file. Not just the text files
Command to go back to previous directory
cd -
What does ‘cd -‘ do ?
go back to previous directory
If we remember the filename, what command can we use so that the command will look through every folder in our current directory for that specific file.
‘find -name’ and the name of the file
e.g ‘find -name password.txt’
what character is the wildcard ?
*
What command can we run to find the name of every .txt file ?
find -name *.txt
What does ‘grep’ do ?
Allows us to search the contents of files for specific values that we are looking for.
What command allows us to search the contents of files for specific values that we are looking for ?
grep
What command would you run to use grep on “access.log” to find the flag that has a prefix of “THM”. What is the flag?
grep THM access.log
This operator allows you to run commands in the background of your terminal.
&
What does the & operator do ?
Allows you to run commands in the background of your terminal.