run it inside a screen session, you send commands to screen itself!
Starts a detached screen with the given screen-name. Can be useful for automatic started scripts and init.d-scripts.
By adding this to your bashrc, when SSH'ing to a server while screen is active it will change the window tittle to the name of the server you going to. Show Sample Output
Screen is a full-screen window manager that multiplexes a physical terminal between several processes.
The command creates new session "test", executes 'date' and then start your default shell (to keep the detached session alive). Change 'date' to fit your needs.
screen -r test
will attach the created session.
alias sp='screen -X eval "chdir $PWD"' # save the path in the current sp # create new window ctrl + ] pwd # has same path as last window
This will launch and irssi session on your server. If it's not running, it will create the session. If it's running it'll connect to it and destroy any other connections. If compositing is available, the rxvt window will have transparency added. This window will also open maximized. Anything else this does should be easily figured out in the man pages.
If you have many screen sessions, it can be difficult to find the id of the one you just detached from so you can re-attach using `screen -x -S ` Show Sample Output
Tries to reattach to screen, if it's not available, creates one. created an alias "irc" for it, since sometimes i forget if there already is a screen session running with irssi, this way I avoid creating a new one by mistake.
I alias this as "tach": alias tach='screen -x `screen -ls | grep Detached | cut -c -10`' If you have several detached sessions it will just grab the first one. If you're running nested screens you can open new outer windows and run tach repeatedly to grab all the detached sessions into that one. Show Sample Output
This opens up nautilus in the current directory, which is useful for some quick file management that isn't efficiently done from a terminal.
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: