Giant Penetration Testing Cheat Sheet for Linux Commands – I

Well, if you have learned different programming languages, then after one time you start to feel confused between different syntax codes. You might miss the syntax of one programming language with another and increase your workload. However, remembering the Linux commands might be easy, but when so many different things are going in your mind, then remembering Linux commands can become a tiresome job.

Now, folks, don’t feel bad for as cheap sheets are here for you. Cheat sheets can be a life savior for the developers in rainy days. So, to help out our Linux programmers, we have designed a giant Linux command cheat sheet which can make your workload less. This Linux command cheat sheet serious is going to be pretty long as we will discuss commands in three different parts; general Linux usage, NMAP scanning, and Metasploit.

So, if you want to learn something productive about the Linux commands, then stay tuned with us till the end.

Linux BASH Shell Commands

BASH Shell Shortcuts & Shorthand –

The knowing Bash shell hotkeys will make the Linux command separate from other languages. There are numerous hotkeys present in the shell, some are practical and some are functional. So, to save yourself from the hassle of re-entering in extremely long command that is nearly identical to the last command you ran. You need to nail the process of shell and following hotkeys might help you in it;

  • ctrl + c will terminate the currently running command.
  • ctrl + r helps in searching the current terminal season’s history.
  • ctrl + a command helps in rectifying any typo error from the beginning of the text as takes you back to the start line.
  • ctrl + e this command is opposite and takes you to the end line.
  • ctrl + z is to sleep the program.
  • !! to reuse the last running command.
  • This command has a special feature![command] (i.e. !ping), it is used to reissues the last command starting with the supplied parameters, which is the last ping command in this example.
  • Up arrow is used to search cached history to locate previously running commands.
  • Down arrow is helpful in sorting out the history of most recently used commands.
  • For auto-completing file and directory names within the current working directory, tab command is used.

Basic Shell Commands –

  • mount shell command displays the mounted media and files systems.
  • Uptime command notifies for how long system has been running.
  • If too much information is printed on the current terminal screen, then you can use clear command to wipe clean the screen.
  • the date shows configured date and time of the operating system.
    To display active user in the shell whoami command is used.
  • su root keeps you for a root password to log in and run commands with root privileges.
  • To print your current working directory which is your current location use pwd.
  • To print the list of files and directories within your current location ls command can be used.
  • The detail list of the directories and files can be printed using the ls -l command.
  • Is -la command will show you a long listing, and the -an option shows you all files; by default, hidden files that start with the “.” character is omitted.
  • The CD file command is useful for navigating Linux system.

Well, people, we have just started our journey of Linux command cheat sheet as there are plenty of other cheats available to share. So, keep on reading and liking our stuff as we will be shortly back with the next installment of the Linux command series.

Leave a Comment

Your email address will not be published.

You may use these HTML tags and attributes: <a href=""> <abbr> <acronym> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Send a Message