Archive for tag: UNIX
19 May, 2010 (23:22) | Linux, Mac OS X, screen, UNIX, [English Posts] | By: Wolfgang
Today a tip for all the GNU screen fans out there. It's really nothing special and the manpage readers might already know this but as I only figured this out lately I thought I would share it anyway:
By default control sequences in screen begin with C-a (pressing Ctrl and a at the same time). ...
Tags: Linux, screen, ssh, UNIX |
17 May, 2010 (23:30) | Linux, Miscellaneous, [English Posts] | By: Wolfgang
The easiest way to match multiple strings with grep is to use extended regular expressions. To do so call grep with the -E option or use the command alias egrep.
The following command will match lines with at least one occurrence of one or more of the three words ruby, rails or rake in it.
grep ...
Tags: grep, Linux, UNIX |
16 May, 2010 (23:49) | Linux, UNIX, [English Posts] | By: Wolfgang
To automatically start GNU screen every time you log into your zsh shell just put the following command into your $HOME/.zprofile:
screen -DR
The advantage of placing the command in the .zprofile file is that it is only read by login shells. The -DR option creates a new screen session or reattaches a running one. The ...
Tags: Linux, screen, UNIX, zsh |
13 May, 2010 (20:38) | Miscellaneous, [English Posts] | By: Wolfgang
A very simple and nice way for sharing files or testing HTML-sites is Python's SimpleHTTPServer Module. The following command allows to access the current working directory to be accessed via HTTP on port 8080: python -m SimpleHTTPServer 8080 Of course this only works if the serving machine and port is reachable from the requesting ...
Tags: Linux, Mac OS X, Python, UNIX |
8 May, 2010 (23:05) | Linux, Mac OS X, [English Posts] | By: Wolfgang
You are trying to set up a public key authentication to a host and performed all the necessary tasks. You have checked your sshd configuration over and over again but it just doesn't work? Changes are that you forgot to set the right permissions of your authorized_keys file and/or your .ssh directory. In my ...
Tags: Linux, ssh, UNIX |
5 May, 2010 (21:45) | zsh, [English Posts] | By: Wolfgang
Problem: Before further processing them you have to rename a bunch of files in the form of forename surname.png to surname_forename.png.
Solution: One fast way to solve this is to use the zmv function of your Z shell. The only prerequisite is to make sure zmv is loaded either by executing autoload zmv interactively or ...
Tags: Linux, UNIX, zsh | 1 comment