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

05:17:00JURNAL —» Leo Butnaru
17:40:00Republica Moldova își prezintă sectorul IT în Germania și promovează noi parteneriate tehnologice 🛰️ —» Sandu GRECU
16:58:00Drum deschis spre carieră: UTM și AMALT semnează un parteneriat pe 5 ani pentru studenți 🧑‍🎓 —» Sandu GRECU
10:35:00Cum pot comunitățile utiliza eficient energia și face economii pe timp de iarnă și vară? —» Sandu GRECU
10:20:00Utilizăm energia eficient - soluții de eficiență energetică în gospodărie —» Sandu GRECU
08:13:07Mundus Vini: un vin surpriză ia titlul „Best of show Moldova sparkling” —» Fine Wine
07:09:00DIN POEZIA ITALIANĂ —» Leo Butnaru
17:59:00DIALOG DESPRE ARTA TRADUCERII —» Leo Butnaru
07:32:02Arhitectura unui brand personal sau profesional: între substanță, diferențiere și încredere —» Efrosnatalita’s Blog
06:08:00DIN COSMOGRAME —» Leo Butnaru
21:41:54Industria calului în galop —» APort | "Pentru un român care știe citi, cel mai greu lucru e să nu scrie." I.L. Carag
18:50:24Vai sărmana turturică… adăpostită la Purcari! —» Fine Wine
11:55:26Mărțișor, 2026 —» CHIŞINĂU MUZICAL | Blogul Bibliotecii de Arte "Tudor Arghezi"
06:09:00VIN SĂRBĂTORILE —» Leo Butnaru
06:39:00DIN POEZIA LUMII —» Leo Butnaru
07:42:00Женское счастье. —» Александр Ищенко - Размышления
06:38:00MINISTERUL... MISTERIULUI —» Leo Butnaru
07:09:00Alone —» Andrei LANGA. Blogul personal
06:15:00REFLECȚII —» Leo Butnaru
17:18:00Calea Lactee —» Andrei LANGA. Blogul personal
07:24:00DIN POEZIA EUROPEI —» Leo Butnaru
12:24:29Bastus si Gerula —» APort | "Pentru un român care știe citi, cel mai greu lucru e să nu scrie." I.L. Carag
13:16:00Haină —» Andrei LANGA. Blogul personal
11:57:00Antarctida —» Andrei LANGA. Blogul personal
05:25:00DIN POEZIA FRANCEZĂ —» Leo Butnaru