Commands by Aissen (3)

  • Allows system to be halted and session closed by KDE. Very useful to save applications states, especially with the KDE apps that behave correctly.


    0
    qdbus org.kde.ksmserver /KSMServer logout 0 2 2
    Aissen · 2012-03-12 19:48:08 4
  • This uses the KDE suspend to ram.


    0
    qdbus org.freedesktop.PowerManagement /org/kde/Solid/PowerManagement suspendToRam
    Aissen · 2012-03-12 19:46:14 4
  • Alias to play flash videos with mplayer. You can replace mplayer with your favorite video player. This alias supports Chrome & Firefox's way of handling the flash plugin. It will play all the videos in the cache. Note that certain videos might never make it to the cache, if the publisher ask for them not to: they will just be loaded in RAM. A variant if you're just interested in playing the audio, for example for a music : alias flashmusic="mplayer -vo null \$(find /proc/\$(pgrep -f 'libgcfl|libflashplayer')/fd/ -printf '%p %l\n' |grep FlashXX | cut -d\ -f1)"


    0
    alias flashplay="mplayer \$(find /proc/\$(pgrep -f 'libgcflash|libflashplayer')/fd/ -printf '%p %l\n' |grep FlashXX | cut -d\ -f1)"
    Aissen · 2011-12-19 09:29:57 4

What's this?

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.

Share Your Commands


Check These Out

search the manual page names and descriptions

Exclude .svn, .git and other VCS junk for a pristine tarball
~$ tar --version tar (GNU tar) 1.20

list block devices
Shows all block devices in a tree with descruptions of what they are.

merge vob files to mpg

list files recursively by size

Calculate days on which Friday the 13th occurs (inspired from the work of the user justsomeguy)
Friday is the 5th day of the week, monday is the 1st. Output may be affected by locale.

Job Control
background and disown, but with a proper one-line syntax

Search inside a folder of jar/zip files
Great for finding which jar some pesky class is hiding in!

Display all readline binding that use CTRL
Useful for getting to know the available keyboard shortcuts.

Check if the LHC has destroyed the world
This says if the LHC has destroyed the world. Run it in a loop to monitor the state of Earth. Might not work reliable, if the world has actually been destroyed.


Stay in the loop…

Follow the Tweets.

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

Subscribe to the feeds.

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: