📜 ⬆️ ⬇️

Description of more than 350 Linux commands

An interesting link was found on the digge ( PDF version ) - a description of more than 350 Linux commands (in English). In fact, it is a cheat sheet where teams are divided into categories. I note that this is not a simple list of commands, namely the description with the application . Not to be unfounded I will give a few examples.



We look information about the processor
 cat / proc / cpuinfo

')
Get information about the swap
 cat / proc / swaps 	


We are looking for files that have not been used for more than 100 days.
 find / usr / bin-type f -atime +100


We look at the installed packages, sorted by size (for Debian and Ubuntu)
 dpkg-query -W -f = '$ {Installed-Size; 10} \ t $ {Package} \ n' |  sort -k1,1n


Convert text files to HTML (required package is required)
 recode ..HTML <page.txt> page.html



I hope it will be useful not only for beginners, but also for ordinary users, for example, I looked at information about the swap in a completely different way, and, moreover, quite curved.


PS I wanted to make a link , but there are strong restrictions on the number of "bukaf".


Update 1: link from Tagire user: Command line secrets (Gentoo wiki) .


Update 2: automatic unpacking of archives from user nuit :

Add the lines that follow this sentence to ~ / .bashrc and unpack all sorts of archives with the command “ex archive_name” without memorizing the options:
 function ex {
   if [-f $ 1];  then
     case $ 1 in
       * .tar.bz2) tar xjf $ 1 ;;
       * .tar.gz) tar xzf $ 1 ;;
       * .bz2) bunzip2 $ 1 ;;
       * .rar) rar x $ 1 ;;
       * .gz) gunzip $ 1 ;;
       * .tar) tar xf $ 1 ;;
       * .tbz2) tar xjf $ 1 ;;
       * .tgz) tar xzf $ 1 ;;
       * .zip) unzip $ 1 ;;
       * .Z) uncompress $ 1 ;;
       * .7z) 7z x $ 1 ;;
       *) echo "'$ 1' cannot be reached via ex ()" ;;
     esac
   else
     echo "'$ 1' is not a valid file"
   fi
 }


I hope I formatted the code well.

Update 3: link from Tagire : Linux user - briefly about everything (big cheat sheet) .


Update 4: search for the “that-don't-know-what” user urandom (search for the keyword components and programs):
 apropos keyword



Update 5: updated links and added PDF version from develop7

Source: https://habr.com/ru/post/18375/


All Articles