xprop is a program that can list and set X11 window properties. Listing properties is really simple: just run xprop and click on the window that you are interested in, or use the -root or -id command line parameters to choose the “root” window or a window by ID. What’s not so clear is how …
Category Archives: Linux
Java and File Names With Invalid UTF-8
On Unix systems – Linux and OS X included – file names can be arbitrary binary data with very few limitations. This means that in order to make sense of the name a character encoding must be used. Recently UTF-8 has become the default encoding on many systems, but sometimes you have to deal with …
Your Bash Prompt Needs This
Have you ever had this happen to you? You start a program and then interrupt it with Ctrl-C, and Bash prints its prompt after the ^C you have typed: prompt$ a very long command ^Cprompt$ █ Then you hit the Up key to retrieve very long command from the history and try to edit it, …
5 cool things you can do with SSH besides logging in
You probably already know ssh and that you can use it to log on to remote machines with “ssh user@example.com.” Type in the password and It Just Works™. But that’s not all you can do. You can also… Transfer files. The OpenSSH client comes with the file transfer programs sftp and scp. They use the …
Continue reading “5 cool things you can do with SSH besides logging in”
Introducing nc – the network “cat”
No, not lolcat, netcat. Ever wanted to see how exactly a web server responds to a HTTP request, intercept and study the network traffic of a client-server program, or transfer files over a network? Well, you’ll love netcat. You give it a hostname and a port, and it connects stdin and stdout to the socket …