Saturday, December 20, 2008

Linux tips

I admit that I am new to Ubuntu. I had used SUSE for sometime in the university but now I use Ubuntu in the office. I stumble upon some ad hoc things every now and then. I have started liking Ubuntu with its good and bad things. I have some cool things to share. I never knew these techniques until I started using more and more command line.

Q. How do I find out what version of Linux distribution I’m using from the shell prompt?

A. To find out what version of Linux (distro) you are running, enter the following command at the shell prompt:
$ cat /etc/*-release

Q. Can you tell me Linux command to find out information about my hard disk such as description, product name, bus type, size, cache memory size etc under Linux?

A. This command read / request identification information such as disk size, description and much more directly from the drive, which is displayed in a new expanded format.
Open the terminal and type the command:
# hdparm -I /dev/sda
OR
$ sudo hdparm -I /dev/sda

The cool site where I found these question and answers sited on this page

No comments:

Post a Comment