Host Based Forensics Toolkit Flashcards
What is the comand for Listing files?
ls
What does the “ls” comand do?
It lists files.
What is the comand to list with hidden files?
ls -a
What does the “ls -a” comand do?
It includes hidden files.
What is the comand to list with Detials?
ls -l
What does the “ls -l” comand do?
It does detailed listing.
What is the comand for detailed list including human readable files?
ls -lh
What does the “ls -lh” comand do?
Detailed list including human readable files.
What is the comand to reverse order the list?
ls -r
What does the “ls -r” comand do?
It reverses the display order of the list.
What is the comand to Change directory?
cd <dir></dir>
What does the “cd (dir)(/dir)” comand do?
Changes to a specific directory.
What does “<dir></dir>” mean?
Directory.
What does the “cd ~” comand do?
It goes to the Home Directory.
What is the comand to go to the Home Directory?
cd ~
What does the “cd ../..” comand do?
Goes 2 directories up.
What is the comand to go 2 directories up?
cd ../..
What is an absolute file path?
It is the full file path where we want to go.
What is an example of an absolute file path?
cd /home/cain/downloads
What type of example is this file path “cd /home/cain/downloads”?
Absolute file path.
What is a relative file path?
It is the file path starting where you are currently.
What is an example of a relative file path?
Staring in “/home/caine”
to get to downloads
“cd downloads”.
What does “..” comand do?
Moves up a directory.
What comand would you use to get from “/home/caine/downloads/PCAP” and get to “/home/caine”?
cd ../..
What is the comand to copy a directory?
cp (source) (destination)
what does the “cp (source) (destination)” comand do?
It copies the directory and moves it to the destination.
What is the comand to remove a directory?
rm (target)
rmdir (target)
What does the “rm (target)” and “rmdir (target)” do?
Removes a directory.
What is the comand to create a directory?
mkdir (directory name)
What does the “mkdir (directory name)” comand do?
Creates a directory.
What is the comand to move a directory?
mv (source) (destination)
What does the “mv (source) (destination)” comand do?
Move a directory.
What does the “man” comand do?
It displays all information on a command. Its the manual.
What comand displays the information on a comand?
man (command name)
What is the comand to concatonate a file?
cat (filename)
What does the “cat (filename)” comand do?
Concatenate files.
What does concatenate mean?
To merge things together.
What is the comand to display the contents of a file by page?
less (filename)
What does the “less (filename)” comand do?
Shows the contents of a file page by page.
What does the “grep” comand do?
It searches for patterns in a file.
Outputs a file.
What comand searches for patterns in a file?
grep
What does the “find” comand do?
It searches for files.
What comand searches for files?
find
What does the “pwd” comand do?
Prints your current directory.
What comand prints your current directory?
pwd
What does the “clear” comand do?
Clears the terminal.
What comand clears the terminal?
clear
How can you move between comands?
Using the up and down arrows.
rwx are?
The permissions of a file.
What number system do file permissions use?
Octal
What is the Read number?
4
What is the Write number?
2
What is the Execute number?
1
What does the “chmod” comand do?
It changes the file permissions.
What is the comand that changes the file permissions?
chmod
What is the outcome of “chmod 764 text.txt” comand?
Owner has rwx permissions.
Group has rw permissions.
Other has r permissions.
What does the “<” comand do?
Takes an input from a file.
What comand takes an input from a file?
<
What does the “>” comand do?
Outputs to a file.
What comand outputs to a file?
>
What does the “|” comand do?
Joins commands together.
What comand Joins commands together?
|
What does the “ls -l | grep downloads > ls.txt” comand do?
It takes the detailed listing and output downloads and puts it into ls.txt.
What are two common editors?
vi
nano