Works for Debian an sons distros. With a bad internet connection sometime I download the updateable packages in another place, but I can't be there all time takes upgrade every packages... so I execute this for update only packages that are in Debian's apt cache. Using the 'sudo bash -c' for no asking every time apt-get need sudo permition.
Block given ip for X seconds and then automatically unban.
Combs through your home directory and destroys all Vagrant boxes.
Used $(pwd) to get full path find to list files xargs to pass args bash to parse variables
example or test, basic awareness on app state, mostly for copy-paste reasons, requires auditd (ausyscall), rekt echoing (everything here is rekt) Show Sample Output
It tries to identify the file types in a directory and adds or replaces them with their appropriate extensions. Please, update the "file" tool before use it (last version: 5.37): https://github.com/file/file
Rust kernel development needs a far different setup than most projects — so by passing these flags to rustup-init, you can ensure that you’ll have a Rust toolchain that will work on your system with little, if any, effort.
There's no need for ls or grep; printf is builtin to most modern shells
urldecode files in current directrory
Have you ever wondered what the hell was dd command doing? well, there you have it... notice the -USR1 signal :)... Show Sample Output
This way you don't need to replace first line of a bash foo.sh script #!/bin/bash with #!/bin/bash -x to obtain the same effect
I used this because I needed to sort the content of a bunch of gzipped log files. Replace sort with something else, or simply remove sort to just rezip everything
Allow to launch nc like a daemon, in background until you still stop it. (like this command: http://www.commandlinefu.com/commands/view/9978 ) For send script or commands from the client to the server, use nc too, like that : cat script.sh | nc server 1025 echo "service openvpn restart" | nc server 1025 The loop's inside doesn't do anything, but we can add echo -e "\nCommand received\n" . Show Sample Output
Display man page in plain text
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: