Will append lines to the hosts file to do some basic ad blocking.
check your load with top... Start more of these jobs to get an multi-core cpu busy... Show Sample Output
Logtool is a nice tool that can export log file to various format, but its strength lies in the capacity of colorize logs. This command take a log as input and colorize it, then export it to an html file for a more confortable view. Logtool is part of logtool package.Tested on Debian.
Pipe any output to "grep ." and blank lines will not be printed.
This is a quick and easy way of encrypting files in a datastream, without ever really creating an output file from gpg. Useful with cron also, when file(s) have to be sent based on a set schedule.
Quick write some notes to a file with cat. Ctrl+C when you have finish.
Searches all log files (including archived bzip2 files) for invalid user and PAM authentication errors, both of which are indicative of brute force attempts at logging into computer. A list of all unique IP addresses and domain names is appended to hosts.deny. The command (and grep error messages) will work on Mac OS X 10.6, small adjustments may be needed for other OSs.
Create a text file called domainlist.txt with a domain per line, then run the command above. All registries are a little different, so play around with the command. Should produce a list of domains and their expirations date. I am responsible for my companies domains and have a dozen or so myself, so this is a quick check if I overlooked any.
Displaying system temperature your system . shellcode version @ http://inj3ct0r.com/exploits/12554 Show Sample Output
Like the original version except it does not include the parent apache process or the grep process and adds "sudo" so it can be run by user.
After splitting a file, put them all back together a lot faster then doing
cat file1 file2 file3 file4 file5 > mainfile
or
for i in {0..5}; do cat file$i > mainfile; done
When splitting, be sure to do split -d
for getting numbers instead of letters
Just use '-' to use STDIN as an additional input to 'cat'
`split -b 1k file` splits files into 1k chunks. Rejoin them with `cat x* > file`.
Great for little scripts that dig up obscure info that you are going to have to paste into another app anyway.
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: