Thanks to pooderbill for the idea :-) Show Sample Output
Shows the current directory and those below it in a simple tree structure. Recommended use: alias lt='$command_above'
List only hidden files (or directories). You also can use:
ls -lad .*
use manpages, they give you "ultimate commands" "ls -SshF --color" list by filesize (biggest at the top) "ls -SshFr --color" list by filesize in reverse order (biggest at the bottom) Show Sample Output
Although rm is protected against it, there are many commands that would wreak havoc on entering the obvious ".*" to address "dot-files". This sweet little expression excludes the dirs "." and ".." that cause the problems. Show Sample Output
plays with bash arrays. instead of storing the list of files in a temp file, this stores the list in ram, retrieves the last element in the array (the last html file), then removes it.
ls -l may vary depending on operating system, so "print $8" may have to be changed
no need to use grep.
All with only one pipe. Should be much faster as well (sort is slow). Use find instead of ls for recursion or reliability. Edit: case insensitive Show Sample Output
all files in the directory get moved, in doing so the new name of the file is the original name with out spaces (using translate command)
Take advantage of sudo keeping you authenticated for ~15 minutes. The command is a little longer, but it does not require X (it can run on a headless server).
I use this command to select a random movie from my movie collection.. Show Sample Output
ls -1 shows one file per line (update: -1 was not really needed) wc -l counts the lines received from the previous command Show Sample Output
Find top 5 big files
Old drive with lots of music or unsorted drive? This command will play all mp3 files in a folder and after playing one song or pressing q, it will ask you if you want to delete the file.
Muestra el crecimiento de un archivo por segundo. Cambia el texto "FILE" por el nombre del archivo a monitorear. Comando LS + AWK Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: