drwxr-xr-x 8 root root 4096 Dec 14 2017 SMB and RPC Enumeration drwxr-xr-x 8 root root 4096 Dec 14 2017 Web Enumeration drwxr-xr-x 8 root root 4096 Dec 14 2017 Linux PrivEsc drwxr-xr-x 8 root root 4096 Jun 15 2021 Linux Commands drwxr-xr-x 8 root root 4096 Feb 24 2022 DDoS SMB TL;DR You can grab and parse these commands from this page using cURL: curl -s https://harfordcda.neocities.org/linux_commands.html | sed 's/<[^>]*>//g ; /^$/d'| tr -s '\n' '\n' | sed -r /^r?$/d > linux_commands.txt
 ____________________
< Who you Gonna Call >
 --------------------
          \
           \
            \          __---__
                    _-       /--______
               __--( /     \ )XXXXXXXXXXX\v.
             .-XXX(   O   O  )XXXXXXXXXXXXXXX-
            /XXX(       U     )        XXXXXXX\
          /XXXXX(              )--_  XXXXXXXXXXX\
         /XXXXX/ (      O     )   XXXXXX   \XXXXX\
         XXXXX/   /            XXXXXX   \__ \XXXXX
         XXXXXX__/          XXXXXX         \__---->
 ---___  XXX__/          XXXXXX      \__         /
   \-  --__/   ___/\  XXXXXX            /  ___--/=
    \-\    ___/    XXXXXX              '--- XXXXXX
       \-\/XXX\ XXXXXX                      /XXXXX
         \XXXXXXXXX   \                    /XXXXX/
          \XXXXXX      >                 _/XXXXX/
            \XXXXX--__/              __-- XXXX/
             -XXXXXXXX---------------  XXXXXX-
                \XXXXXXXXXXXXXXXXXXXXXXXXXX/
                  ""VXXXXXXXXXXXXXXXXXXV""
				  
Type help for a list of interactive commands.
########################## sed commands ########################## #replace all occurrences of a word with another word sed -i 's/old_word/new_word/g' file #replace text between two patterns with new text sed -i '/start_pattern/,/end_pattern/c\new_text' file #remove blank lines from a file sed -i '/^$/d' file #remove spaces and tabs from the beginning of each line sed -i 's/^[ \t]*//' file #extract a particular section of a file using a pattern sed -n '/start_pattern/,/end_pattern/p' file ########################## egrep & grep commands ########################## #find all files in a directory that contain a certain pattern grep -rl 'pattern' directory #display line numbers with matching patterns grep -n 'pattern' file #exclude files from the search grep -r --exclude-dir={dir1,dir2} 'pattern' directory #search for patterns in files of a certain type grep -r --include='*.txt' 'pattern' directory #search for patterns in files of all types except certain types grep -r --exclude='*.log' 'pattern' directory #display only the file names that match the pattern grep -rl --include='*.txt' 'pattern' directory | xargs basename ########################## SSH logs ########################## #view the SSH log file in real-time tail -f /var/log/auth.log | grep 'sshd' ########################## Directories and Files ########################## #display the disk usage of a directory du -sh directory #display the largest files in a directory du -ah directory | sort -n -r | head -n 10 #display the available disk space on the system df -h #display the file type of a file file file #display the first 10 lines of a file head file #display the last 10 lines of a file tail file #compress a file or directory tar -czvf archive.tar.gz directory #extract files from a compressed archive tar -xzvf archive.tar.gz #monitor a directory for changes watch -n 1 'ls -l directory' ########################## Process Management ########################## #show detailed information about processes ps aux #kill all processes owned by a particular user pkill -u username #kill all processes with a specific name and owned by a particular user pkill -u username process_name ############################# SSH ############################# #SSH into a remote host ssh user@hostname #SSH with non-standard port ssh -p 2222 user@hostname #SSH tunneling for port forwarding ssh -L local_port:remote_host:remote_port user@hostname #Copy local file to remote host over SSH scp /path/to/local/file user@hostname:/path/to/remote/directory #Copy remote file to local host over SSH scp user@hostname:/path/to/remote/file /path/to/local/directory #Copy directory and its contents to remote host over SSH scp -r /path/to/local/directory user@hostname:/path/to/remote/directory #Copy directory and its contents from remote host over SSH scp -r user@hostname:/path/to/remote/directory /path/to/local/directory ############################# File Manipulation ############################# #List files and directories in current directory ls #List files and directories with details ls -l #List files and directories with details and hidden files ls -la #Change current directory cd /path/to/directory #Create a new directory mkdir new_directory_name #Create a new file touch new_file_name #Copy file cp /path/to/source/file /path/to/destination/directory/ #Copy directory and its contents cp -r /path/to/source/directory /path/to/destination/directory/ #Move file mv /path/to/source/file /path/to/destination/directory/ #Move directory and its contents mv /path/to/source/directory /path/to/destination/directory/ #Rename file mv current_file_name new_file_name #Delete file rm /path/to/file #Delete directory and its contents rm -rf /path/to/directory