Check These Out
This modifies the output of ls so that the file size has commas every three digits. It makes room for the commas by destructively eating any characters to the left of the size, which is probably okay since that's just the "group".
Note that I did not write this, I merely cleaned it up and shortened it with extended regular expressions. The original shell script, entitled "sl", came with this description:
: '
: For tired eyes (sigh), do an ls -lF plus whatever other flags you give
: but expand the file size with commas every 3 digits. Really helps me
: distinguish megabytes from hundreds of kbytes...
:
: Corey Satten, corey@cac.washington.edu, 11/8/89
: '
Of course, some may suggest that fancy new "human friendly" options, like "ls -Shrl", have made Corey's script obsolete. They are probably right. Yet, at times, still I find it handy. The new-fangled "human-readable" numbers can be annoying when I have to glance at the letter at the end to figure out what order of magnitude is even being talked about. (There's a big difference between 386M and 386P!). But with this nifty script, the number itself acts like a histogram, a quick visual indicator of "bigness" for tired eyes. :-)
I often use it to find recently added ou removed device, or using find in /dev, or anything similar.
Just run the command, plug the device, and wait to see him and only him
Many times I give the same commands in loop to find informations about a file. I use this as an alias to summarize that informations in a single command. Now with variables! :D
Example:
touch file{1,2,3};
chmod 777 !*
If are a Bash user and you are in a directory and need to go else where for a while but don't want to lose where you were, use pushd instead of cd.
cd /home/complicated/path/.I/dont/want/to/forget
pushd /tmp
cd thing/in/tmp
popd (returns you to /home/complicated/path/.I/dont/want/to/forget)
cdrecord -scanbus will tell you the (x,y,z) value of your cdr (for example, mine is 3,0,0)
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Convert multiple files using avidemux. Version updated (thanks to the guys who helped me giving me hints about how to improve the command). Works with files whose name contains blank characters.
One of the reasons why I love open source: everyone can take something "done" and improve it to make it better! If u have suggestions, please let me know.