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

07:27:56DIN IMAGINAȚIA COPILULUI —» Leo Butnaru
06:46:27LA PURTĂTOR —» Leo Butnaru
15:08:49RESENTIMENTE ȘI ILUZIA EGALIZĂR —» Leo Butnaru
07:11:38Castel Mimi lansează noutățile din roada 2025 —» Fine Wine
04:56:35DIN PASIENȚE —» Leo Butnaru
14:58:00Igor Picușciac: I-am dat cu sticla în cap lui Tâmbur... 🔥🔥🔥 —» Sandu GRECU
14:42:00Lilian Carp denunță manipulările și mesajele contradictorii ale primarului Ion Ceban privind criza ecologică de pe râul Nistru —» Sandu GRECU
18:32:00Loteria Națională a Moldovei lansează newsletter-ul oficial 🗞️ —» Sandu GRECU
17:59:00Producătorii de vinuri de autor din Republica Moldova participă la RO-Wine 2026, la Cluj-Napoca 🥂 —» Sandu GRECU
15:19:35Ghici cine a primit despăgubiri pentru robie? —» Curaj.TV | Media alternativă
12:07:51„Smoothie” din tescovină: Purcari duce Moldova în liga europeană a cercetării —» Fine Wine
10:54:16Odeon —» Andrei LANGA. Blogul personal
05:17:14DESPRE JURNALUL UNEI EPOCI —» Leo Butnaru
11:04:23Inițiativa „Feteasca Generation”, lansată la Prowein —» Fine Wine
08:55:26Reînvie o legendă? Amaro de la Valea Perjei —» Fine Wine
05:36:22ECART ȘI APROPIERE —» Leo Butnaru
14:40:00Loteria Națională a Moldovei lansează instrumente de accesibilitate digitală pe platforma lnm.md —» Sandu GRECU
10:40:12Petru Leonardi – prințul baletului moldovenesc —» Biblioteca de Arte 'Tudor Arghezi'
09:30:477 din 7: vinurile Castel Mimi au punctat 100% la Mundus Vini —» Fine Wine
08:50:00всем спасибо! все свободны! —» Ghiocika
07:07:00DIN REVISTA TINERILOR —» Leo Butnaru
11:53:58Sudul nu servește TVA —» APort | "Pentru un român care știe citi, cel mai greu lucru e să nu scrie." I.L. Carag
05:13:00DESTINUL CĂRȚILOR —» Leo Butnaru
04:41:00LACONIC YES-EU —» Leo Butnaru
12:30:00,,Direcții strategice de activitate a bibliotecii în anul – 2026” —» Biblioteca Publică or.Rîşcani