yes 6 (tail from 6th line)
Using column to format a directory listing Show Sample Output
Simple but useful; list files in the current directory in mtime order. Useful if you've been working on something and then take a day or two off. Show Sample Output
A bit shorter ;)
This is an alternative to another command using two xargs. If it's a command you know there's only one of, you can just use:
ls -l /proc/$(pgrep COMMAND)/cwd
Show Sample Output
rename file name with fixed length nomeric format pattern Show Sample Output
Like normal ls, but only lists directories. Can be used with -l to get more details (ls -lad */) Show Sample Output
basic find implementation for systems that don't actually have find, like an android console without busybox installed.
I'm sure there's a more elegant sed version for the tr + grep section.
Display recursive file list (newest file displayed at the end) and be free to access last file in the list simply by pressing arrow_up_key i.e. open it with joe editor.
BTW IMHO the list of files with newest files at the end is often more informative.
Put this 'lsa' function somewhere in your .bashrc and issue
. ~/.bashrc
or
source ~/.bashrc
to have access to the 'lsa' command immediately.
.
(the function appends command "joe last_file_in_the_list" at the end of command history)
Show you the list of files of current directory sorted by date youngest to oldest, remove the 'r' if you want it in the otherway.
This command converts filenames with embedded spaces in the current directory replacing spaces with the underscore ("_") character. Show Sample Output
To sort hidden files first, simply switch the two inner `ls` commands.
I have this aliased to `dira`
`dir` is aliased to the simpler version with no hidden files:
ls -l --color=always | less -R
When a fs hangs and you've just one console, even # ls could be a dangerous command. Simply put a trailing "&" and play safe
This command lists the names of your USB devices connected and what file in /dev they are using. It's pretty useful if you don't have an automount option in your desktop or you don't have any graphical enviroment. 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: