Check These Out
wraps text lines at the specified width (90 here).
-s option is to force to wrap on blank characters
-b count bytes instead of columns
Was playing with the shell. It struck to me, just by rearranging the parameters, i was able to remember what they did and in a cool way.
Enter the 'hitlar' mode.
bash-3.2$ ls -hitlar
Shows all items with inodes, in list view, human readable size, sorted by modification time in reverse,
bash-3.2$ ls -Fhitlar
Shows the same with classification info. Add the hitlar mode alias to your .bashrc.
bash-3.2$ echo "alias hitlar='ls -Fhitlar'" >> ~/.bashrc
bash-3.2$ hitlar
bash-3.2$ hitlar filename
Give the Speed and Link status of eth# 0-3. This is sort of what mii-tool does, but eth-tool is better, yet lacks device discovery.
http://public-dns.info gives a list of online dns servers. you need to change the country in url (br in this url) with your country code. this command need some time to ping all IP in list.
While `sshfs $REMOTE_HOST:$REMOTE_PATH $LOCAL_PATH` "pulls" a directory from the remote server to the local host, the above command does the reverse and "pushes" a directory from the local host to the remote server.
This makes use of the "slave" option of sshfs which instructs it to communicate over plain stdin/stdout and the `dpipe` tool from vde2 to connect the sftp-server stdout to the sshfs stdin and vice-versa.
This is an example of using 3 hosts, in a netcat relay.
first host connects to middle host
1 -> 2
Second hosts redirects to target host
1 -> 2 -> 3
I hope this makes sense.
For each *.jpg or *.JPG file in the current directory, extract the date the photo was taken from its EXIF metadata. Then replace the date stamp, which is assumed to exist in the filename, by the date the photo was taken. A trick from https://unix.stackexchange.com/a/9256 is used to split the date into its components.
This will calculate the your commandlinefu votes (upvotes - downvotes).
Hopefully this will boost my commandlinefu points.
Much more accurate than other methods mentioned here straight out of the box.