Linux Terminal Commands Cheat Sheet

Linux Terminal Commands Cheat Sheet

If you want to quickly learn Linux, it is better that you have a programming cheat sheet. It will serve as your guide to easily remember things related to it. If you are looking for Linux terminal commands cheat sheet, check this out!

linux terminal commands cheat sheet

Cheat Sheet Linux

application cheat sheetBash Commands

  • Uname-a: It will show the kernel and system
  • Head-n1/etc/issue: It will show the distribution
  • Mount: It will show the mounted file systems
  • Date: It will show the system date
  • Uptime: It will show the uptime
  • Whoami: Show the username
  • Man command: Show the manual for the command

Bash Shortcuts:

  • CTRL-c: It will stop the current command
  • CTRL-z: It is about sleep program
  • CTRL-a: Start of the line
  • CTRL-e: End of the line
  • CTRL-u: It means cut from the start of the line
  • CTRL-k: It means cut to end of the line
  • CTRL-r: Search the history
  • !!: It means to repeat the last command
  • !abc: It means to run the last command beginning with the abc
  • !abc:p: It will print the last command beginning with abc
  • !$: It is about the last argument of the previous command
  • ALT-: Last argument of the previous command

Here is another cheat sheet template that you want to know for more ideas.

Lunux Best Cheat Sheet Template

Directory operations:

  • Pwd: It will show the current directory
  • Mkdir dir: It will create the directory dir
  • Cd dir: It will change the directory to the dir
  • cd..: It means to go up to directory
  • Is: List files

Is Options:

  • -a: It will show all which include hidden
  • -R: It means recursive list
  • -r: It will reverse the order
  • -t: It is sorted by the last modified
  • -S: It is sorted by the file size
  • -l: It means long listing format
  • -1: 1 file for each line
  • -m: it means comma separated output
  • -q: It means quoted output

When it comes to search files, here is how to do a cheat with it. You will know the shortcuts and some ideas.

Search Files: Cheat sheet tips

Search Files:

  • Grep pattern files: In here, you will search for the pattern in files
  • Grep-i: You will search for case insensitive
  • Grep-r: Search for the recursive
  • Grep-v: Search for inverted
  • Grep-o: It will show the matched part of the file only
  • Find/dir/-name name*: It means to search for the files beginning with i name in the dir
  • Find/dir/-username: Find the files owned
  • Find/dir/- mmin num: Search the files that modified less than number minutes ago in the dir
  • Where is command: Find the binary source, source or manual for the command
  • Locate file: Search the file or do a quickly search of the system index

File Operations:

  • Touch file 1: create file 1
  • Cat file1 file 2: concatenate output as well as the files
  • Less file 1: Paginate the file 1 and view it
  • File file1: In here, you get the type of the file 1
  • Cp file 1 file 2: copy file 1 to file 2
  • Mv file 1 to file 2: move file 1 to file 1
  • Rm file 1: delete file 1
  • Head file 1: show the first ten lines of the file 1

Start to know how to do a cheat so that whenever you need to create one, you know what to do. The cheat sheet is important because it will guide you in learning and easily remember all the things or the codes.

Whenever you have more time, get to know some web design cheat sheet tips and remember them. The template as well as the tips will be your help in creating the best cheat sheet.

Use our Linux terminal commands cheat sheet today!


Download as PDF

Next Post

Previous Post

© 2021 My Cheat Sheet

Theme by Anders Norén