Bash tips

Christian's Blog (ccBlog)

Hallo, willkommen auf meiner privaten Seite. Mit Einträgen zu Dingen die mich interessieren und bewegen. More »

Bash tips

September 19. 2007 at 17:18
Posted by Christian Czech in Linux
Let Bash Save Your Aching Fingers

One the greatest things about Linux is that all you really need is a command prompt to get some work done. Of course, this comes at the expense of stressing out your finger muscles. Or... does it? Here's some nice little tips to save your aching fingers.

Sometimes you get tired of entering the same commands over and over again.
Code Listing 2.1: Very long ls command

$ ls -loBh --author --color=always --group-directories-first ~
$ ls -loBh --author --color=always --group-directories-first /var/log

Use the alias command to save a lot of typing

Code Listing 2.2: Alias to the rescue

$ alias ls='ls -loBh --author --color=always --group-directories-first'

Or better yet, make it permanent by putting the alias in your .bashrc

Code Listing 2.3: Making it permanent

$ echo "alias ls='ls -loBh --author --color=always --group-directories-first'" >> ~/.bashrc

Calendar

« September '08 »  
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

Kategorien

  • XML Computer (4)
  • XML Linux (10)
  • XML Windows (3)
  • XML Privates (10)
  • XML Sonstiges (2)

All categories

Foto-Album

Bilderalbum von Christian

Quicksearch

Archives

September 2008
August 2008
July 2008
Recent...
Older...

Statistiken

Letzter Artikel: 23.07.2008 15:04
33 Artikel wurden geschrieben
25 Besucher diesen Monat
5 Besucher heute
25 Besucher diese Woche

Neuer Eintrag

Neuer Eintrag

Blog Administration

Open login screen
 

Impressum | Wunschliste | Login | Design by ceejay