This evening i will be showing a group of students some of my favorite command-line tricks. Does anyone have any favorites that you think need to be in a "greatest hits"?
#shell #unix #linux #commandLine
@markgalassi
alias rt='/bin/ls -lrt'
so that rt lists the most recently touched file last.
Or this:
ff ()
{
find . -iname "*$1*"
}
so you can call
ff blarg
to find any file in the current and subdirectories having blarg in its name, ignoring case. Extending the function to not search the current but a given directory with the current as default left as an exercise:-)
@HaraldKi I have (and use all the time) the same aliases but with different names :-)
I use "lst" for the reverse chrono listing, and I pipe it to head -13
And my "find/print" alias I call "fil" (find with the -ls option) or "fip" (find with the -print option, better for pipes).
But I had not put in the "ignore case" which I like a lot and I will now change to doing that - thanks!