commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
can show module other
Info about Bluetooth devices.
If you want avoid to be annoyed when playing your favourite video files with your video player, first run this command to stash wrong files (and test tricks to play these wrong files).
This command give you Just the Network Cidr Notation
This will find all the -Xmx[BIGINT] running on a system, add them up for you and give you the total.
Solves these pesky errors you see in the Apache log:
[Fri Jun 28 17:51:00 2013] [emerg] (28)No space left on device: Couldn't create accept lock (/monsoon/opt/apache2/logs/accept.lock.356) (5)
Naturally, can be used to get rid of other semaphores. Note: change the apache user in accordance to your ENV.
..not guaranteed to always be accurate but fun to see how old you Linux installation is based on the root partitions file system creation date.
List system current active ip address
Pipes the header row of ps to STDERR, then greps for the command on the output of ps, removing the grep entry before that.
becuase im lazy and cant be bothered looking at the tv guide to choose a channel , any improvments or comments appreciated
Automatically drops mount points that have non-numeric sizes (e.g. /proc). Tested in bash on Linux and AIX.
Find mac address only from drivers, without using ifconfig.
Similarly for last wake time:
sysctl -a | grep waketime
basic find implementation for systems that don't actually have find, like an android console without busybox installed.
The other commands were good, but they included packages that were installed and then removed.
This command only shows packages that are currently installed, sorts smallest to largest, and formats the sizes to be human readable.
This shows all process (-e) and threads (-L) in full format (-F)
first grep all href images then sed the url part then wget
I use this with alias:
alias lsl="ls -1F | grep @$ | sed 's/@//' | column"
Limitation: This will also list files that happen to have an @ at the end of the filename.
I use this with alias:
alias lsl="ls -1F | grep @ | sed 's/@//' | column"