So this first obtains address of the DBUS session, as it's not available by default over SSH. Then it tells plasma-overlay to exit. `kquitapp` is pretty much an equivalent of the qdbus calls.
Yo run the `nohist` command and after that the commands won't get stored in the history file for the current session. This makes no permanent changes.
that's how I do it in ubuntu
Need to change values of 'field 1'...'field 3' to column names. input_file.tsv is the tab file you want to conver output_file.json is the file that is created with the json output. Assumes your tsv has no headers.
Useful if you have multiple versions of Java installed. The 1.7 pkg for Mac doesn't tell you anything about where it's putting stuff. Show Sample Output
e.g.
OLDDIALOGRC=$DIALOGRC; export DIALOGRC=/dev/stdin; echo -e "screen_color = (CYAN,RED,ON)" | dialog --infobox "\nfoo bar" 5 11; export DIALOGRC=$OLDDIALOGRC
Alternative:
OLDDIALOGRC=$DIALOGRC; export DIALOGRC=/dev/stdin; printf "<configuration>\n" | dialog <options>; export DIALOGRC=$OLDDIALOGRC
A simple PS1, ready to be used. Just paste in your ~/.bashrc Show Sample Output
From a local node, retrieve the date from server A and set that time on server B. When ntpd is not an option and you need to get closest clock sync between two nodes Replace SRC_SRV with yout source server and DST_SRV with your destination server. You must have ssh access to both and sudo access to the the destination to set the date. Show Sample Output
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
#ps aliases PSO='user,pid,ppid,%cpu,%mem,time,start,state,command' PSOA='user,pid,time,state,command' PSOL='user,pid,ppid,%cpu,%mem,nice,pri,etime,time,tt,state,ucomm' export PSO PSOA PSOL function _ps { /bin/ps $@ ; } alias ps='_ps ax -o $PSO' alias psa='_ps ax -o $PSOA' alias psl='_ps ax -o $PSOL' alias psm='_ps -U $USER -o $PSOA'
a pretty simple script when running java programs from command line Show Sample Output
(1) don't run twice, or the same folder will occur in $PATH. (2) otherwise you need to start a new terminal Show Sample Output
Is there somebody that uses Windows a lot that keeps messing up your Linux machine? Press Ctrl+Alt+F1-F6 and run this command after logging into a text shell!
Not always does Xorg run on :0. For times like those, this script allows you to find out which it is.
Like the given command, but combines _DISPLAY=":0.0"_ with _export DISPLAY_ to get _export DISPLAY=":0.0"_ and only imports if DISPLAY is set successfully.
This will temporarily add the current directory to your $PATH. Allowing you to execute from that directory for the duration of the session.
changes the PS1 to something better than default. [username.hostname.last-2-digits-of-ip] (current directory) Show Sample Output
This command is great for dumping your history so that when you're working on a system that is under a shared account, you can keep others from reviewing your history file. I use this when I'm just visiting a system to diagnose a problem, or to make a quick fix.
This will kill a specific process you don't know the PID of, when pidof and pgrep are not available, for example on OS X. var1 is created so that the whitespace can be trimmed before passing off to kill. Show Sample Output
only during session
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: