Posts with the tag Utility
If you ever wanted to open PDF, JPEG, PNG files etc.
#!/bin/sh # A simple bash script that uses Applescript to # open multiple files in Preview. For example: # "preview hello.png world.gif *.jpg" if [ -z "$*" ]; then ...
We as Mac users know that the space bar reveals "Quick Look" the fast preview for folders and files on Mac OS X. But how can you have a "quick look" at a file when using the terminal? The anser is the following command:
qlmanage -p the.file.in.question
To create an ssh shortcut, add the following text (adopted to your setup) to
# You can add multiple blocks like this to your .ssh/config Host rudolf Hostname rudolf-web.net Port 22 User rudolf Protocol 2 Compression yes ServerAliveInterval 15 ForwardX11 no #LocalForward 20001 188.8.131.52:80
To connect to that host via ssh you can now simply type the following...
Using the bash builtin command
You can just use the following terminal command to start the stopwatch:
time read -sn1
and press [Enter] when you want to take the time. As the output of the
time command is a bit verbose, you may want the time command to only print...
dos2unix from the
tofrodos package to convert files with Windows (DOS) style CRLF (carriage return and line feed) line endings to Unix style LF (linefeed only) line endings. Install as follows:
sudo aptitude install tofrodos
How you use the tool:
If you want to convert files from one encoding to another you want to use the tool
iconv -f WINDOWS-1252 -t UTF-8 about.txt > about.utf.txt
The above command converts the
about.txt input file from the old West-European encoding ISO-8859-1 to UTF-8 and saves the result to
With the very small tool
x2x you can move your mouse to the left edge of your local screen and will continue to move over to the remote desplay. Your keyboard works on both computers as well, and you can even copy-paste between the two computers. It looks like the...