Every Linux Commands I know A-Z
💡
Follow me on twitter: twitter.com/xtremepentest
-
| A | Command | Command Description |
|---|---|---|
| Untitled | & | Start a new process in the background |
| Untitled | alias | Create an alias • |
| Untitled | apropos | Search Help manual pages (man -k) |
| Untitled | apt | Search for and install software packages (Debian/Ubuntu) |
| Untitled | apt-get | Search for and install software packages (Debian/Ubuntu) |
| Untitled | aptitude | Search for and install software packages (Debian/Ubuntu) |
| Untitled | aspell | Spell Checker |
| Untitled | at | Schedule a command to run once at a particular time |
| Untitled | awk | Find and Replace text, database sort/validate/index |
| B | ||
| Untitled | basename | Strip directory and suffix from filenames |
| Untitled | base32 | Base32 encode/decode data and print to standard output |
| Untitled | base64 | Base64 encode/decode data and print to standard output |
| Untitled | bash | GNU Bourne-Again SHell |
| Untitled | bc | Arbitrary precision calculator language |
| Untitled | bg | Send to background |
| Untitled | bind | Set or display readline key and function bindings • |
| Untitled | break | Exit from a loop • |
| Untitled | builtin | Run a shell builtin |
| Untitled | bzip2 | Compress or decompress named file(s) |
| C | ||
| Untitled | cal | Display a calendar |
| Untitled | caller | Return the context of any active subroutine call • |
| Untitled | case | Conditionally perform a command |
| Untitled | cat | Concatenate and print (display) the content of files |
| Untitled | cd | Change Directory |
| Untitled | cfdisk | Partition table manipulator for Linux |
| Untitled | chattr | Change file attributes on a Linux file system |
| Untitled | chgrp | Change group ownership |
| Untitled | chmod | Change access permissions |
| Untitled | chown | Change file owner and group |
| Untitled | chpasswd | Update passwords in batch mode |
| Untitled | chroot | Run a command with a different root directory |
| Untitled | chkconfig | System services (runlevel) |
| Untitled | cksum | Print CRC checksum and byte counts |
| Untitled | clear | Clear terminal screen |
| Untitled | cmp | Compare two files |
| Untitled | comm | Compare two sorted files line by line |
| Untitled | command | Run a command - ignoring shell functions • |
| Untitled | continue | Resume the next iteration of a loop • |
| Untitled | cp | Copy one or more files to another location |
| Untitled | cpio | Copy files to and from archives |
| Untitled | cron | Daemon to execute scheduled commands |
| Untitled | crontab | Schedule a command to run at a later time |
| Untitled | csplit | Split a file into context-determined pieces |
| Untitled | curl | Transfer data from or to a server |
| Untitled | cut | Divide a file into several parts |
| D | ||
| Untitled | date | Display or change the date & time |
| Untitled | dc | Desk Calculator |
| Untitled | dd | Data Duplicator - convert and copy a file, write disk headers, boot records |
| Untitled | ddrescue | Data recovery tool |
| Untitled | declare | Declare variables and give them attributes • |
| Untitled | df | Display free disk space |
| Untitled | diff | Display the differences between two files |
| Untitled | diff3 | Show differences among three files |
| Untitled | dig | DNS lookup |
| Untitled | dir | Briefly list directory contents |
| Untitled | dircolors | Colour setup for 'ls' |
| Untitled | dirname | Convert a full pathname to just a path |
| Untitled | dirs | Display list of remembered directories |
| Untitled | dos2unix | Windows/MAC to UNIX text file format converter |
| Untitled | dmesg | Print kernel & driver messages |
| Untitled | dpkg | Package manager (Debian/Ubuntu). |
| Untitled | du | Estimate file space usage |
| E | ||
| Untitled | echo | Display message on screen • |
| Untitled | egrep | Search file(s) for lines that match an extended expression |
| Untitled | eject | Eject removable media |
| Untitled | enable | Enable and disable builtin shell commands • |
| Untitled | env | Environment variables |
| Untitled | ethtool | Ethernet card settings |
| Untitled | eval | Evaluate several commands/arguments |
| Untitled | exec | Execute a command |
| Untitled | exit | Exit the shell |
| Untitled | expand | Convert tabs to spaces |
| Untitled | export | Set an environment variable |
| Untitled | expr | Evaluate expressions |
| F | ||
| Untitled | false | Do nothing, unsuccessfully |
| Untitled | fdformat | Low-level format a floppy disk |
| Untitled | fdisk | Partition table manipulator for Linux |
| Untitled | fg | Send job to foreground |
| Untitled | fgrep | Search file(s) for lines that match a fixed string |
| Untitled | file | Determine file type |
| Untitled | find | Search for files that meet a desired criteria |
| Untitled | fmt | Reformat paragraph text |
| Untitled | fold | Wrap text to fit a specified width |
| Untitled | for | Expand words, and execute commands |
| Untitled | format | Format disks or tapes |
| Untitled | free | Display memory usage |
| Untitled | fsck | File system consistency check and repair |
| Untitled | ftp | File Transfer Protocol |
| Untitled | function | Define Function Macros |
| Untitled | fuser | Identify/kill the process that is accessing a file |
| G | ||
| Untitled | gawk | Find and Replace text within file(s) |
| Untitled | getopts | Parse positional parameters |
| Untitled | grep | Search file(s) for lines that match a given pattern |
| Untitled | groupadd | Add a user security group |
| Untitled | groupdel | Delete a group |
| Untitled | groupmod | Modify a group |
| Untitled | groups | Print group names a user is in |
| Untitled | gzip | Compress or decompress named file(s) |
| H | ||
| Untitled | hash | Remember the full pathname of a name argument |
| Untitled | head | Output the first part of file(s) |
| Untitled | help | Display help for a built-in command • |
| Untitled | history | Command History |
| Untitled | hostname | Print or set system name |
| Untitled | htop | Interactive process viewer |
| I | ||
| Untitled | iconv | Convert the character set of a file |
| Untitled | id | Print user and group id's |
| Untitled | if | Conditionally perform a command |
| Untitled | ifconfig | Configure a network interface |
| Untitled | ifdown | Stop a network interface |
| Untitled | ifup | Start a network interface up |
| Untitled | import | Capture an X server screen and save the image to file |
| Untitled | install | Copy files and set attributes |
| Untitled | iostat | Report CPU and i/o statistics |
| Untitled | ip | Routing, devices and tunnels |
| J | ||
| Untitled | jobs | List active jobs • |
| Untitled | join | Join lines on a common field |
| K | ||
| Untitled | kill | Kill a process by specifying its PID |
| Untitled | killall | Kill processes by name |
| L | ||
| Untitled | less | Display output one screen at a time |
| Untitled | let | Perform arithmetic on shell variables • |
| Untitled | link | Create a link to a file |
| Untitled | ln | Create a symbolic link to a file |
| Untitled | local | Create a function variable • |
| Untitled | locate | Find files |
| Untitled | logname | Print current login name |
| Untitled | logout | Exit a login shell • |
| Untitled | look | Display lines beginning with a given string |
| Untitled | lpc | Line printer control program |
| Untitled | lpr | Print files |
| Untitled | lprint | Print a file |
| Untitled | lprintd | Delete a print job |
| Untitled | lprintq | List the print queue |
| Untitled | lprm | Remove jobs from the print queue |
| Untitled | lsattr | List file attributes on a Linux second extended file system |
| Untitled | lsblk | List block devices |
| Untitled | ls | List information about file(s) |
| Untitled | lsof | List open files |
| Untitled | lspci | List all PCI devices |
| M | ||
| Untitled | make | Recompile a group of programs |
| Untitled | man | Help manual |
| Untitled | mapfile | Read lines from standard input into an indexed array variable • |
| Untitled | mkdir | Create new folder(s) |
| Untitled | mkfifo | Make FIFOs (named pipes) |
| Untitled | mkfile | Make a file |
| Untitled | mkisofs | Create a hybrid ISO9660/JOLIET/HFS filesystem |
| Untitled | mknod | Make block or character special files |
| Untitled | mktemp | Make a temporary file |
| Untitled | more | Display output one screen at a time |
| Untitled | most | Browse or page through a text file |
| Untitled | mount | Mount a file system |
| Untitled | mtools | Manipulate MS-DOS files |
| Untitled | mtr | Network diagnostics (traceroute/ping) |
| Untitled | mv | Move or rename files or directories |
| Untitled | mmv | Mass Move and rename (files) |
| N | ||
| Untitled | nc | Netcat, read and write data across networks |
| Untitled | netstat | Networking connections/stats |
| Untitled | nft | nftables for packet filtering and classification |
| Untitled | nice | Set the priority of a command or job |
| Untitled | nl | Number lines and write files |
| Untitled | nohup | Run a command immune to hangups |
| Untitled | notify-send | Send desktop notifications |
| Untitled | nslookup | Query Internet name servers interactively |
| O | ||
| Untitled | open | Open a file in its default application |
| Untitled | op | Operator access |
| P | ||
| Untitled | passwd | Modify a user password |
| Untitled | paste | Merge lines of files |
| Untitled | pathchk | Check file name portability |
| Untitled | Perf | Performance analysis tools for Linux |
| Untitled | ping | Test a network connection |
| Untitled | pgrep | List processes by name |
| Untitled | pkill | Kill processes by name |
| Untitled | popd | Restore the previous value of the current directory |
| Untitled | pr | Prepare files for printing |
| Untitled | printcap | Printer capability database |
| Untitled | printenv | Print environment variables |
| Untitled | printf | Format and print data • |
| Untitled | ps | Process status |
| Untitled | pushd | Save and then change the current directory |
| Untitled | pv | Monitor the progress of data through a pipe |
| Untitled | pwd | Print Working Directory |
| Q | ||
| Untitled | quota | Display disk usage and limits |
| Untitled | quotacheck | Scan a file system for disk usage |
| R | ||
| Untitled | ram | ram disk device |
| Untitled | rar | Archive files with compression |
| Untitled | rcp | Copy files between two machines |
| Untitled | read | Read a line from standard input • |
| Untitled | readarray | Read from stdin into an array variable • |
| Untitled | readonly | Mark variables/functions as readonly |
| Untitled | reboot | Reboot the system |
| Untitled | rename | Rename files |
| Untitled | renice | Alter priority of running processes |
| Untitled | remsync | Synchronize remote files via email |
| Untitled | return | Exit a shell function |
| Untitled | rev | Reverse lines of a file |
| Untitled | rm | Remove files |
| Untitled | rmdir | Remove folder(s) |
| Untitled | rsync | Remote file copy (Synchronize file trees) |
| S | ||
| Untitled | screen | Multiplex terminal, run remote shells via ssh |
| Untitled | scp | Secure copy (remote file copy) |
| Untitled | sdiff | Merge two files interactively |
| Untitled | sed | Stream Editor |
| Untitled | select | Accept user choices via keyboard input |
| Untitled | seq | Print numeric sequences |
| Untitled | set | Manipulate shell variables and functions |
| Untitled | sftp | Secure File Transfer Program |
| Untitled | shift | Shift positional parameters |
| Untitled | shopt | Shell Options |
| Untitled | shuf | Generate random permutations |
| Untitled | shutdown | Shutdown or restart linux |
| Untitled | sleep | Delay for a specified time |
| Untitled | slocate | Find files |
| Untitled | sort | Sort text files |
| Untitled | source | Run commands from a file '.' • |
| Untitled | split | Split a file into fixed-size pieces |
| Untitled | ss | Socket Statistics |
| Untitled | ssh | Secure Shell client (remote login program) |
| Untitled | stat | Display file or file system status |
| Untitled | strace | Trace system calls and signals |
| Untitled | su | Substitute user identity |
| Untitled | sudo | Execute a command as another user |
| Untitled | sum | Print a checksum for a file |
| Untitled | suspend | Suspend execution of this shell • |
| Untitled | sync | Synchronize data on disk with memory |
| T | ||
| Untitled | tail | Output the last part of a file |
| Untitled | tar | Store, list or extract files in an archive |
| Untitled | tee | Redirect output to multiple files |
| Untitled | test | Evaluate a conditional expression |
| Untitled | time | Measure Program running time |
| Untitled | timeout | Run a command with a time limit |
| Untitled | times | User and system times |
| Untitled | tmux | Terminal multiplexer |
| Untitled | touch | Change file timestamps |
| Untitled | top | List processes running on the system |
| Untitled | tput | Set terminal-dependent capabilities, color, position |
| Untitled | traceroute | Trace Route to Host |
| Untitled | trap | Execute a command when the shell receives a signal • |
| Untitled | tr | Translate, squeeze, and/or delete characters |
| Untitled | true | Do nothing, successfully |
| Untitled | tsort | Topological sort |
| Untitled | tty | Print filename of terminal on stdin |
| Untitled | type | Describe a command • |
| U | ||
| Untitled | ulimit | Limit user resources • |
| Untitled | umask | Users file creation mask |
| Untitled | umount | Unmount a device |
| Untitled | unalias | Remove an alias • |
| Untitled | uname | Print system information |
| Untitled | unexpand | Convert spaces to tabs |
| Untitled | uniq | Uniquify files |
| Untitled | units | Convert units from one scale to another |
| Untitled | unix2dos | UNIX to Windows or MAC text file format converter |
| Untitled | unrar | Extract files from a rar archive |
| Untitled | unset | Remove variable or function names |
| Untitled | unshar | Unpack shell archive scripts |
| Untitled | until | Execute commands (until error) |
| Untitled | uptime | Show uptime |
| Untitled | useradd | Create new user account |
| Untitled | userdel | Delete a user account |
| Untitled | usermod | Modify user account |
| Untitled | users | List users currently logged in |
| Untitled | uuencode | Encode a binary file |
| Untitled | uudecode | Decode a file created by uuencode |
| V | ||
| Untitled | v | Verbosely list directory contents ('ls -l -b') |
| Untitled | vdir | Verbosely list directory contents ('ls -l -b') |
| Untitled | vi | Text Editor |
| Untitled | vmstat | Report virtual memory statistics |
| W | ||
| Untitled | w | Show who is logged on and what they are doing |
| Untitled | wait | Wait for a process to complete • |
| Untitled | watch | Execute/display a program periodically |
| Untitled | wc | Print byte, word, and line counts |
| Untitled | whereis | Search the user's $path, man pages and source files for a program |
| Untitled | which | Search the user's $path for a program file |
| Untitled | while | Execute commands |
| Untitled | who | Print all usernames currently logged in |
| Untitled | whoami | Print the current user id and name ('id -un') |
| Untitled | wget | Retrieve web pages or files via HTTP, HTTPS or FTP |
| Untitled | write | Send a message to another user |
| X | ||
| Untitled | xargs | Execute utility, passing constructed argument list(s) |
| Untitled | xdg-open | Open a file or URL in the user's preferred application. |
| Untitled | xxd | Make a hexdump or do the reverse |
| Untitled | xz | Compress or decompress .xz and .lzma files |
| Untitled | yes | Print a string until interrupted |
| Untitled | zip | Package and compress (archive) files |
| Untitled | . | Run a command script in the current shell |
| Untitled | !! | Run the last command again |
| Untitled | ### | Comment / Remark |