0% found this document useful (0 votes)
25 views3 pages

Linux Cheatsheet 5

This document is a cheat sheet for preparing for the OSCP penetration testing certification. It lists important Linux file paths, such as /home for user directories and /etc for system configuration files. It also provides examples of common Linux commands and their uses, such as sudo apt update to update package lists, ls -la to view files with attributes, and cd to change directories. The cheat sheet is intended to help students learn Linux navigation and common commands needed for penetration testing.

Uploaded by

rjkojas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

Linux Cheatsheet 5

This document is a cheat sheet for preparing for the OSCP penetration testing certification. It lists important Linux file paths, such as /home for user directories and /etc for system configuration files. It also provides examples of common Linux commands and their uses, such as sudo apt update to update package lists, ls -la to view files with attributes, and cd to change directories. The cheat sheet is intended to help students learn Linux navigation and common commands needed for penetration testing.

Uploaded by

rjkojas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Offensive Penetration Testing [OSCP] cert prep Cheat Sheet

by owlherpes69 via cheatography.com/197555/cs/41656/

file/d​ire​ctory paths in linux

Root directory (/)


Home directory (/home)
System config​uration files directory (/etc)
System binaries direct​ories (/bin, /sbin)
User binaries directory (/usr/bin)
Logs directory (/var/​logs)
Apache server files directory (/var/​www​/html)
Device drivers directory (/dev)
Shared libraries directory (/lib)
Boot filesystem directory (/boot)
Mount points directory (/mount)
Processes directory (/proc)
Temporary files directory (/tmp)
SSH keys directory (~/.ssh)

the command line

sudo apt update: Updates the package lists for upgrades and new package installations. This ensures you
have the latest information about package versions and dependencies from the repositories.
sudo apt install Chromium: Installs the Chromium web browser on the system.
sudo su: Switches to the root user, giving you admini​str​ative privileges for the duration of the
session.
passwd root: Changes the password for the root user. This command is used after switching to the root
user.
apt install beef-xss: Installs the BeEF (Browser Exploi​tation Framework) XSS tool.
ls -la: Lists all files and direct​ories in the current directory, including hidden files, along with
detailed inform​ation like permis​sions, number of links, owner, group, size, and timestamp.
cd /user/​sha​re/​bee​f-xss/: Changes the current directory to /user/​sha​re/​bee​f-xss/, the typical
location for the BeEF framework files.
gedit config.yaml: Opens the config.yaml file in the gedit text editor for viewing or editing.
man [command]: Displays the manual page for a specified command, providing detailed inform​ation about its
usage (e.g., man ls for the list command).
nmap -h: Displays help inform​ation for the Nmap command, including its options and usage.
ls la: This command is likely a typo. It should be ls -la, which, as mentioned, lists all files and
direct​ories with detailed inform​ation.
cd ~/: Changes the current directory to the home directory of the current user.
cd .: Keeps the current directory unchanged (. refers to the current direct​ory).
cd ..: Changes the current directory to the parent directory of the current directory.
touch [filen​ame]: Creates a new, empty file with the specified filename. If the file already exists, it
updates the file's last modified timestamp.
mkdir [directory name]: Creates a new directory with the specified name.

By owlherpes69 Not published yet. Sponsored by CrosswordCheats.com


Last updated 13th December, 2023. Learn to solve cryptic crosswords!
Page 1 of 3. http://crosswordcheats.com

cheatography.com/owlherpes69/
Offensive Penetration Testing [OSCP] cert prep Cheat Sheet
by owlherpes69 via cheatography.com/197555/cs/41656/

the command line (cont)

> cat [filen​ame]: Displays the contents of the specified file.


rm [filen​ame]: Deletes the specified file.
rmdir [directory name]: Deletes the specified directory, which must be empty.
cp [source] [desti​nat​ion]: Copies the file or directory from the source path to the destin​ation path.
mv [source] [desti​nat​ion]: Moves or renames a file or directory from the source path to the destin​ation path.

By owlherpes69 Not published yet. Sponsored by CrosswordCheats.com


Last updated 13th December, 2023. Learn to solve cryptic crosswords!
Page 3 of 3. http://crosswordcheats.com

cheatography.com/owlherpes69/

You might also like