LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LQ Suggestions & Feedback (http://www.linuxquestions.org/questions/lq-suggestions-and-feedback-7/)
-   -   Tips and Tricks Section (http://www.linuxquestions.org/questions/lq-suggestions-and-feedback-7/tips-and-tricks-section-3619/)

trickykid 06-22-2001 12:50 PM

Tips and Tricks Section
 
hey after this thread, http://www.linuxquestions.org/questi...&threadid=3587 got an idea of
maybe not just a documentation page but maybe a page where users of Linux can submit like tips and tricks that they use on a regular basis. you know, not just alot of info but maybe something like a quick hint or tip people can use when using Linux.

is anybody maybe up for something like that or not?

jharris 06-22-2001 01:14 PM

Sounds cool...

The one that I use the most in the !$ and !! substitutions in bash/tcsh (and probably csh too). So instead of doing a
Code:

mkdir someLongDirName
cd someLondDirName

I do a
Code:

mkdir someLongDirName
cd !$

and instead of
Code:

vi someDodgyScript
chmod 700 someDodgyScript
./someDodgyScript
(someDodgyScript: yeah right, call that code - *CRASH*)
vi someDodgyScript

I'll end up doing
Code:

vi someDodgyScript
chmod 700 !$
./!$
(someDodgyScript: yeah right, call that code - *CRASH*)
vi !!

Looks a bit wierd to read but can save ya time.

The same goes for making typos in big command and using the ^original^replacement^ to do the substitution. So
Code:

/some/dir/that/is/a/sod/TO/find/aBinary   
(*error! TO should be to*)
/some/dir/that/is/a/sod/to/find/aBinary

becomes
Code:

/some/dir/that/is/a/sod/TO/find/aBinary   
(*error! TO should be to*)
^TO^to^

Jamie...


All times are GMT -5. The time now is 03:29 AM.