A command to find out what the day ends in. Can be edited slightly to find out what "any" output ends in. NB: I haven't tested with weird and wonderful output. Show Sample Output
Get a list of all the unique hostnames from the apache configuration files. Handy to see what sites are running on a server.
It will change the reserve_lock attribute to all AIX EMC disk attached.
This is a simple solution to running a remote program on a remote computer on the remote display through ssh. 1. Create an empty 'commander' file in the directory where you intend on running these commands. 2. Run the command 3. Hop on another computer and ssh in to the PC where you ran the command 4. cd to the directory where the 'commander' file is. 5. Test it by doing the following: echo "xeyes" > commander 6. If it worked properly, then xeyes will popup on the remote computer. Combined with my other one liner, you can place those in some start-up scripts and be able to screw with your wife/daughter/siblings, w/e by either launching programs or sending notifications(my other one liner). Also, creates a log file named comm_log in working directory that logs all commands ran.
omit "> ~/Desktop/MyAppList`date +%s.txt`" if you don't want to print it to a file on your desktop and instead only want to display to console created and tested on: ProductName: Mac OS X ProductVersion: 10.6.3 BuildVersion: 10D573 Show Sample Output
Get the hour and greet the user! Make sure you add this to your bashrc, for a pleasant hacking experience! Show Sample Output
Can be used in a firewall script, e.g. to avoid logging broadcast packtes. Show Sample Output
Prints a list of ip that tried to login on SMTP/IMAP/POP3/etc.
first greps syslog for certain events (grep xxxx messages) then displays the 1st 2nd and 3rd fields (-f 1,2,3) seperated by space(-d ' ') Show Sample Output
This works only with GNU date. In solaris the command: date +%s doesn't work. You can try using the following instead: nawk 'BEGIN {print srand()}' should give the same output as date +%s under Solaris. Show Sample Output
Lists all packages in "rc" state and purge them one at a time.
Lightweight alternative with case Show Sample Output
usage: where COMMIT for instance: where 1178c5950d321a8c5cd8294cd67535157e296554 where HEAD~5 Show Sample Output
host -i `echo $SSH_CLIENT | cut -f 1 -d \ ` | sed 's/.* domain name pointer \(.*\)\./\1/'
to reverse lookup and get the hostname.
i use this after ripping internet radio streams to number the files as they originally played (even though streamripper can do this with -q). to number other types of files, or all files, just change the *mp3. to rename directories only you could use ... ls -lt | grep ^d | cut -d ":" -f2 | cut -d " " -f2- | while read ... Show Sample Output
This is a simple command which makes electricsheep render directly to your background
Let's supose some moron used some m$ shit to commit to a later svnsynced repo. On a svn sync all his message logs cause a svnsync: Error setting property 'log': this commands finds all its contributions and fix all his commit logs 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: