Eject/Close CD or DVD media with shell command

Shell command eject that is available by default in most of Linux distributions, allows to open and sometimes close removable media tray (usually it’s CD-ROM or DVD media). To eject media: eject /dev/cdrom or eject cdrom As you see the name of device can be a device file or mount point, either a full path or with the leading “/dev”, “/media” or “/mnt” omitted. If no name is specified, the […]

Read more →

 

$GENERATE directive to autocreate DNS records

$GENERATE directive is available in multi platform DNS server BIND since 8.2 version. It helps you to create hundreds or thousands of resource records with one line in zone file. Nice example is to use $GENERATE in order to make PTR records for certain DNS zone.

Read more →

 

Bash shell FAQ

Below is impressive FAQ on bash (GNU command language interpreter) shell. It’s taken from here (thanks to maintainers!). How can I read a file line-by-line? How can I store the return value of a command in a variable? How can I insert a blank character after each character? How can I check whether a directory is empty or not? How can I use array variables? How can I use variable […]

Read more →

 

htop: new generation Linux processes viewer

As it comes from htop‘s manual page, htop is free (GPL) ncurses-based process viewer, that is similar to top, but allows to scroll the list vertically and horizontally to see all processes and their full command lines. Tasks related to processes (killing, renicing) can be done without entering their PIDs. I found this utility very useful and powerful in my everyday working process. Here is the comparison between htop and […]

Read more →

 

Run Photoshop with Ubuntu (or any other Linux)

Adobe Photoshop (or simply Photoshop), is a graphics editor developed and published by Adobe Systems. Currently it’s market leader for commercial bitmap and image manipulation, and is the flagship product of Adobe Systems. Unfortunately it’s available for M$ Windows and Apple OS X users only. Thanks to heaven (and Wine’s developers of course) there is Wine allowing to execute M$ Windows applications (from simple executables to M$ Office and Adobe […]

Read more →