LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Hidden Linux/GNU/Bash gems for the self learner? (https://www.linuxquestions.org/questions/linux-general-1/hidden-linux-gnu-bash-gems-for-the-self-learner-651900/)

randomsel 06-26-2008 04:00 PM

Hidden Linux/GNU/Bash gems for the self learner?
 
Everyone(TM) knows that there are incredibly useful commands/details in Linux that are not widely known to 'insert demographics here'. What are some of your favorite?

Two i like are:

Code:

history | grep something
!nth

will execute the nth command in your history. I think this is bash specific.

and

Code:

cd -
will change directory to your last directory (OLDPWD in your env)

unSpawn 06-26-2008 06:34 PM

One thread you could read is the LQ Tricks and hints thread: http://www.linuxquestions.org/questi...?postid=900179 of course there's still much that isn't covered there but it could be a start.


All times are GMT -5. The time now is 01:52 AM.