Arsen Ivanov

Science and Technology Blog

Archive for the 'linux' Category

Linux: vmstat

Read nifty little intro into this powerful program from Linux By Examples

No comments

25 most useful Linux commands

Here is a great article on *nix Shell detailing 25 top most useful commands for Linux/UNIX beginners.

Enjoy!

1 comment

Linux: lshw

A new pretty nice util I learned today: lshw [LiSt HardWare]. Here is the synopsis from “info” command:

“lshw is a small tool to extract detailed information on the hardware
configuration of the machine. It can report exact memory configuration,
firmware version, mainboard configuration, CPU version and speed, cache
configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and
on some PowerPC machines (PowerMac G4 is known to work).

It currently supports DMI (x86 and IA-64 only), OpenFirmware device
tree (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only
tested on x86), SCSI and USB.”

1 comment

Linux “df” command

Obviously, it is very important to have a grip on disk usage on any computer syste. However, it is hard to do in Linux without the click-drag-drop interface of Windows. That is where “df” command comes in:

“df /mount/point -h” , where /mount/point can be either the actual mount point, or the physical /dev/disk file, “-h” option is for human readable.

Synopsis from the “info df” output (”info” is the new equivalent of the “man” command):

df displays the amount of disk space available on the file system containing each file name argument. If no file name is given, the space available on all currently mounted file systems is shown.

Here is sample input output, for a USB disk appropriately named “disk”, mounted under “media” directory on my system (that is the default setup for Ubuntu, it might be different in your case):


root@arsen-laptop-ubuntu:~# df /media/disk -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/sdb1              76G   44G   29G  61% /media/disk

No comments