Based on capsule8 agent examples, not rigorously tested
This command will take an action on the file same as the action gnome was to take.. for example doing this to a jpg file will open the image in image viewer , doing this to a pdf file will open the file in document viewer... it can be used to open a directory as nautilus will do... you might need to add this to an alias since you may use it alot, such as : alias o='gvfs-open'
This command is named "rope" since it ties a rope in the directory you are in... so when you go to other directories you can type "rope" again and you will get back to tied directory... it helps a lot when you forget to execute a command in other directories, so you can go, do what you want, and return to the directory to complete what you now want to do. NOTE: add this command to the end of ".bashrc" file found in your home directory and the alias will be permanent
Create an index.html containing links of the current folder and serve on the local network Show Sample Output
To get only the address. Show Sample Output
Captures video from webcam and encodes it using the accelerated hardware provided by videotoolbox framework. It takes about 20% cpu in a i5 2015 macbook air. Show Sample Output
grep can count by itself, wc -l is not always necessary (depends on the grep implementation). Show Sample Output
Cuts the last line of /proc/cpuinfo and replace all the leading text and zeros to null. Show Sample Output
Using zsh parameter expansion Show Sample Output
Prints the sizes of all the subdirectories (sorted by size), similar to Treesize utility. https://superuser.com/questions/554319/bash-display-each-sub-directory-size-in-a-list-format-using-1-line-command Show Sample Output
Downloads each file from a github gist individually. Requires jq ( https://stedolan.github.io/jq/ ).
Use yes to repeat (it will continue until the pipe breaks) https://en.wikipedia.org/wiki/Yes_(Unix) head -n5 to repeat the piped command n times. https://en.wikipedia.org/wiki/Head_(Unix) Show Sample Output
Death to the user limits!
Might not work if your devices is older than Lollipop (5.0). Verified on macOS, and most likely work on Linux as well.
passin list of docker container IDs to docker stop 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: