pro-beginner tips:
man program | less -p "specific function inside the program"
. scroll with "n" to the different occurences where the searched expression has been found (and shift+n to go back one search term)- example:
man less | less -p "-p"
searches in the manual of the programm less for the search-pattern "-p". this works with the help flag as well. egs.less --help | less -p "-p"
. mostly --help or -h provides only a rougher help than the man(ual) but sometimes there is no manual. |
pipes the outpout of the first command to te second command. soless
searches via-p
the whole man page and starts its output at the first occurance of the searche pattern.
man -K "Search-Pattern"
searches every man page for a certin pattern (slow!)apropos "search-pattern"
searches in programm description for a pattern and results in a list with programm names.
install tldr (too long didnt read)
tldr programm
gives you the most used use-cases of a programm and often some inspiration.!!
repeats the last command. so withsudo !!
you can repeat a command where you forgot to putsudo
;)
- Learning shell-scripting and python.
- Always happy for tips and tweaks on Linux.
- Running a debian derivat.