Protected by Copyscape

Some Useful Linux Command List by Professional Hacker Team

We are a professional hacker for the team to provide the best possible and ethical hacking services to everyone. We are certified by the various hacking training providers. Anyway, We want to share some useful command list for professional hacker or penetration tester.

We will not explain each command. You kindly need to try in your Linux box to see how it works actually.

First, we need to understand how Linux Filesystem works:

/bin = Binary Directory
 /boot = Boot files are stored
 /dev = Device Directory to create device nodes
 /home = Linux users directories
 /lib = System Library Directory
 /media = Media directory
 /proc = Process directory
 /srv = Service directory to store local service files.
 /sys = System Directory
 /sbin = system program
 /etc = Configuration File
 /usr = User Binary Directory.
 /var = variable directory.
 /usr/bin = application like nmap
 /usr/share = App support and data files

Example of commands:

man -k passwd (keyword search)

 man -k '^passwd'

apropos passwd (search description)

 ls = list file

 ls -a = show hidden

 ls -R = Recurisive files/folder in a directory

mkdir direct(make directory)

 mkdir -p test/{test1,test2,test3)

 which  (file location)

 locate (search file)

 find

echo $PATH

 echo $PWD

 echo $HOME

history (See all history)

!lineNumber(to rerun a command)

echo "test">test(new file created)

echo "test">>test (test added as new line)

sort -t ':' -k 3 -n /etc/passwd 

 ls -la /usr/bin | grep zip (only show the line that contain 'zip')

 Sed

 CUT

 awk

comm file1 file2 (compare two file)

 comm -12 file file2(display that match)

 diff -c file1 file2

 diff -u file1 file2

tail -f /file/ (continually monitoring a file in terminal)

 tail -n2 file (display last two line)

 head file (display first 10 lines)

 head -20 file (display 20 lines)

 watch -n 5 file (display in every 5 sec)

 wget 

 curl

 axel

tar -cvf archive.tar folder1/ folder2 (Compress two folder)

Process Control

Signals are:
HUP – Hangs up
INT – Interrupts
QUIT – Stops running
Kill – direct terminate
SEGV – Produces segment violation
Term – Terminate if possible.
STOP – Stop the program

ps -ef

 ps -fC process_name

 kill process_id

 kill -s SIGNAL process_id(send specific signal such as HANG, TERM)

sleep 500 & (Run the process in background mode)

 jobs (to see background process with PID and it's status))

Okay, We have just listed the command, some with example(This is just a note). You can search each command in Google and learn in more detail for each command. If you want us to write in more explanation, please let us know!

Scroll to Top