"infix" version in bash (4.x+) Remove -v to make it silent. BTW: The OP forgot to use "cat" and "nmap" ;-) I had a good laugh though. Show Sample Output
Will work with filenames with spaces inside. Will not break in case of someone making directory that matches *.pm. And sorts from largest. Where largest is file size, not line count.
Better awk example, using only mplayer, grep, cut, and awk. Show Sample Output
Kill all process that concide whit PATTERN Show Sample Output
It scans all partition in /proc/partition Show Sample Output
Pressing a key will now repeat normally, instead of bringing up the accent/more options menu.
This commands compresses the "tmp" directory into an initrd file.
1. There is no use of '--color=auto' in front of a pipe--instead with '--color=always' grep will mark the section headings. 2. I suppose the use of grep with '-A 900' or '-B 900' respectively a 'dirty trick'--sed can do 'exactly' what we want, however, grep does the nice colouring (see 1.) 3. Cutting of the tail (everthing starting with 'Weitere Aktionen') first leads to no output if leo doesn't no the translation. Show Sample Output
In OS X Yosemite v10.10.3 and later, you can use this command in Terminal while logged in as an admin user. Replace nnn with the desired umask value, such as 027 or 002. This sets the user's umask for all apps they open, such as Finder, TextEdit, or Final Cut Pro, or apps accessed from the command line. It also controls the permissions set on new files created by any of these apps. For more information about setting the umask in Yosemite, see?man launchctl. Show Sample Output
Great for backup / restore scripts. May want to remove the %M/%S to group backups by hour. If using a script, set a variable earlier with the date command, then reference that variable. Otherwise, time will keep on rolling ;-) declare -rx script_start_time="$(date '+./%Y/%m/%d/%H/%M/%S')" mkdir -p "$script_start_time" Show Sample Output
The Linux's `cal` command is nice, but there are times when I need to see two months side by side and this command will do it. Show Sample Output
This is useful in teams where developers don't bother to remove branches after merging PR. These branches make it hard to seek for really useful branches, which gives us a nice value of finding and exploring other people's code even before they create PR for it.
Alternative command to retrieve the CPU model name and strip off the "model name : " labels. Show Sample Output
If we have a csv like structure: 10,50,'something' And we wish to find all numbers that are bigger then 1 (or find a number that is bigger then 1 regardless of the structure), including numbers that start with 1 such as 10 and above. Show Sample Output
Your version works fine except for someone who's interested in commands 'sudo' was prefixed to i.e. in your command, use of sudo appears as number of times sudo was used. Slight variation in my command peeks into what commands sudo was used for and counts the command (ignores 'sudo')
There is a huge number of supported "languages" to which you can export your .fig figures to. See. 'man fig2dev' (http://linux.die.net/man/1/fig2dev).
sudo /sbin/ifconfig | gotxt2imgmail you@example.com
Then exit from the shell.
exit
some time need to exit twice
exit
exit
Now the OS will boot with the new parameters.
Change "santa+monica,ca" to your specific location, i.e. "london,england". In the USA you can also use a zip code, in other countries, use your postal code and country code. 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: