Posts Tagged ‘commandline’

There is a simple tutorial on Ars Technica’s Open Ended site with several useful examples of the grep command. Further examples can be found in the comments section.

Wednesday, May 6th, 2009 at 13:41 | 0 comments
Categories: Linux

Medical images, e.g. X-Rays, are commonly stored in the DICOM format. By default you won’t be able to open these in Ubuntu, but there is actually a package in the repositories which lets you convert DICOM image files to more common formats, e.g. JPEG, PNG or bitmap. sudo apt-get install dcmtk dcmj2pnm +oj img00000 img00000.jpg [...]

Wednesday, May 6th, 2009 at 13:27 | 1 comment
Categories: Linux

Sometimes you may want to log in with a different user account in Terminal without logging out from your X session or switching to an unused virtual console. There are two different approaches to do this in Ubuntu: interestingly, it is possible without even knowing the other user’s password. Approach 1: if you know the [...]

Thursday, April 30th, 2009 at 16:03 | 0 comments
Categories: Linux

Here are a few useful commands for finding version information of various system components. Linux distribution name and version lsb_release -idrc System information, including kernel version uname -a X.org version X -version Java version java -version Package version dpkg -s <insert package name>

Saturday, April 25th, 2009 at 06:56 | 0 comments
Categories: Linux

Most CD-ROM downloads come as ISO images which can be burned onto a CD. They can also be mounted as drives without actually burning them onto a disk by using the mount loopback command. The command below mounts the image foobar.iso in user’s home directory as /media/cdrom: sudo mount -o loop ~/foobar.iso /media/cdrom This assumes [...]

Friday, April 24th, 2009 at 04:14 | 0 comments
Categories: Linux

My recent misadventures with adding a group membership for my user and in the process managing to remove all other groups (including admin) got me thinking about the message “… is not in the sudoers file. This incident will be reported.” Exactly where and how and to whom is this reported? Well, according to clever [...]

Tuesday, April 21st, 2009 at 01:23 | 0 comments
Categories: Linux

Every now and then the Power Manager and/or Network Manager applets crash and disappear from the notification area on my old Xubuntu 8.04 laptop. There have been some bugs posted about this on Launchpad, and it seems as if it should be fixed in more recent releases. Leaving that aside, here are the commands to [...]

Monday, April 20th, 2009 at 12:48 | 0 comments
Categories: Linux

Here is a very simple one which caught me out: you want to add your user to a group through command line. The command is very straightforward: sudo usermod -aG tools hammer This adds the user “hammer” to the group “tools”. Notice the -a switch (for add). This means “hammer” will become member of “tools” [...]

Saturday, April 18th, 2009 at 10:12 | 0 comments
Categories: Linux