Linux Commands - Part 1

This is a linux command line reference for common operations (part 1).
Examples marked with • are valid/safe to paste without modification into a terminal, so
you may want to keep a terminal window open while reading this so you can cut & paste.
All these commands have been tested both on Fedora and Ubuntu.

Linux Commands - part 1   Command Description • apropos whatis Show commands pertinent to string. See also threadsafe • man -t man | ps2pdf - > man.pdf make a pdf of a manual page   which command Show full path name of command   time command See how long a command takes • time cat See how long a command takes • nice info Run a low priority command (The "info" reader in this case) • renice 19 -p $$ Make shell (script) low priority. Use for non interactive tasks   dir navigation   • cd - Go to previous directory • cd Go to $HOME directory   (cd dir && command) Go to dir, execute command and return to current dir • pushd . Put current dir on stack so you can popd back to it   file searching   • alias l='ls -l --color=auto' quick dir listing • ls -lrt List files by date. See also newest and find_mm_yyyy • ls /usr/bin | pr -T9 -W$COLUMNS Print in 9 columns to width of terminal   find -name '*.[ch]' | xargs grep -E 'expr' Search 'expr' in this dir and below. See also findrepo   find -type f -print0 | xargs -r0 grep -F 'example' Search all regular files for 'example' in this dir and below   find -maxdepth 1 -type f | xargs grep -F 'example' Search all regular files for 'example' in this dir   find -maxdepth 1 -type d | while read dir; do echo $dir; echo cmd2; done Process each item with multiple commands (in while loop) • find -type f ! -perm -444 Find files not readable by all (useful for web site) • find -type d ! -perm -111 Find dirs not accessible by all (useful for web site) • locate -r 'file[^/]*\.txt' Search cached index for names. This re is like glob *file*.txt • look reference Quickly search (sorted) dictionary for prefix • grep --color reference /usr/share/dict/words Highlight occurances of regular expression in dictionary


Sursa
2009-02-21 15:59:28



Comenteaza





Ultimele 25 posturi adăugate

17:24:24🎊 15 ani de activitate ai S.A. „Loteria Națională a Moldovei" —» Sandu GRECU
12:58:44Am desemnat câștigătorul premiului de 6600 de lei oferit de Clubul Premier Football 💥🏆🔝 —» Sandu GRECU
09:07:43TÜV Austria își extinde prezența în Republica Moldova: Standarde internaționale pentru creșterea competitivității economice 💫 —» Sandu GRECU
13:45:50Efros la Londra, acasă la Borsetca. Agenție de impresariat împreună cu Plahotniuc. Banii din transferuri 🔥🔥🔥 —» Sandu GRECU
12:13:34Moldova, prezentă la CMB în Erevan —» Fine Wine
05:30:37INTERVIU CU UN CORESPONDENT... NEVĂZUT —» Leo Butnaru
15:12:02🔔 Chișinăul va găzdui evenimentul la nivel înalt EU-Moldova Investment Conference pe 4 iunie 2026 —» Sandu GRECU
07:27:39INVIDIA, URA —» Leo Butnaru
06:59:25Agricultura 5.0 în nordul țării: Tinerii au testat tehnologiile viitorului la Târgul „Viitorul e AgriCOOL” din Corlăteni 🦾 —» Sandu GRECU
10:06:48Radacini lansează Long Charmat Rosé de Noirs —» Fine Wine
08:32:32Vinăria din Vale: rebranding la Motive; Feteasca Regală intră în scenă —» Fine Wine
04:56:02UN INTERVIU —» Leo Butnaru
09:28:35DIN PASIENȚE —» Leo Butnaru
08:35:53Interviu RomStoria: Primul student rom la Sydney —» Curaj.TV | Media alternativă
13:51:31APROAPE DE PEDAGOGIE —» Leo Butnaru
10:18:33Crisecco apare în variantă nouă —» Fine Wine
10:03:46Lansarea cărții ilustrate ”Legenda Bradului” de autoarea Cristina Rusu Trandafir —» Biblioteca de Arte 'Tudor Arghezi'
12:18:14Vasile Costiuc, acid ca niciodată! Atletismul și dubinca. Curățenie olimpică. Lupta cu Viorel 🔥🔥🔥 —» Sandu GRECU
10:02:22Probabil, cea mai bună Floricica din Moldova —» Fine Wine
12:18:07Fautor lansează primul său spumant – Bliss —» Fine Wine
10:15:38Călărași Divin intră pe piața vinurilor  —» Fine Wine
13:26:00Anul – 2026 – anul evaluării bibliotecilor publice —» Biblioteca Publică or.Rîşcani
05:13:03O EDIȚIE ROMÂNO ITALIANĂ —» Leo Butnaru
19:49:00Dragostea în faptă —» adevaruri biblice
05:10:06YES-EU —» Leo Butnaru