Chapter 1 - Getting Start w The Basics Flashcards
(41 cards)
/root
The home directory of the root user
/etc
Contains the Linux config files - files that control when and how programs start up
/home
The user’s home directory
/mnt
Where other filesystems are attached or mounted to the filesystem
/media
Where CDs and USB devices are usually attached or mounted to the filesystem
/bin
Where application binaries (the equivalent of executables in Microsoft Windows or applications in macOS) reside
/lib
Where you’ll find libraries (shared programs that are similar to Windows DLLs)
Command
Returns your location within the directory structure.
pwd
Command
To move up one level in the file structure (towards the root)
cd ..
Command
To move up two levels in the file structure (towards the root)
cd ../..
Command
To move up three levels in the file structure (towards the root)
cd ../../..
Command
Move up to the root level in the file structure
cd /
Command
To get more information about the files and directories, such as their permissions, owner, size, and when they were last modified
ls -l
Show hidden files
ls -a
Three options for help?
-h
–help
-?
Command for manual pages
man [command]
How do you navigate MAN pages?
ENTER - scroll
Page Up/Down + Arrow keys
Quit - Q
Command to go through entire filesystem and find every occurrence of a word
locate
Ex. locate aircrack-ng
Command to locate a binary file, its source, and man page
whereis
Ex. whereis aircrack-ng
Command to only return the location of the binaries in the PATH variable in Linux
which
Command which begins your search in any designated directory and looking for a number of different parameters like name + date of creation
find
Syntax for find
find directory options expressions
Ex. find / -type f -name apache2
Finds a file with the name apache2 starting from the root directory
What separates find from other search commands?
Find displays only exact name matches
Must use wildcard like * . , ? []
What is ? used for?
To replace a single character