Archive for November, 2011

Format the new hard drive in linux

by: acul November 29, 2011

The first step that should be done is when you install a new hard drive in linux is to check whether the new hard disk that you attach your linux detected by what is not, for that execute the following command: [root@dodi data]# fdisk -l | grep “Disk” Disk /dev/hdb: 41.1 GB, 41110142976 bytes

Viewing and stopping processes

by: acul November 28, 2011

Every program that runs on your system, including the shell itself and any commands that you might have issued, creates a process. You can get a list of all running process on your system by using the ps command. For exam- ple, entering the ps command on my system gives the following output:

Checking disk space on Linux

by: acul November 28, 2011

You can use two commands to find out how much space you have used on your file system. First, using the df command shows how much space is used and still available on all devices that are mounted. On my system, this command shows the following output. In this example, I use the -h option [...]

Mounting and unmounting drives on Linux

by: acul November 25, 2011

Before you can use any storage device in Enterprise Linux, the device must first be made a part of the file system. This process is mounting; to attach the drive, you use the mount command. The basic syntax of the mount com- mand is mount devicename mountpoint The devicename identifies the device that you want [...]

Searching for files On Linux

by: acul November 25, 2011

Sometimes you might look for a file in your file system but can’t remember where it is. Fortunately, the shell provides a command that you can use to help you find the file. Easy to remember, the command is find. For example, if you want to find the file testfile but don’t remember where it [...]

Some Files and Directories in /proc

by: acul November 23, 2011

You can navigate the /proc file system just as you’d work with any other directories and files in Linux. Use the more or cat commands to view the contents of a file. /proc/acpi Information about Advanced Configuration and Power Interface (ACPI) — an industry-standard interface for configuration and power management on laptops, desktops, and servers [...]

Checking disk performance and disk usage

by: acul November 23, 2011

Linux comes with the /sbin/hdparm program that you can use to control IDE or ATAPI hard drives that are common on most PCs. One feature of the hdparm program is that you can use the -t option to determine the rate at which data is read from the disk into a buffer in memory. For [...]

Using the uptime command

by: acul November 23, 2011

You can use the uptime command to get a summary of the system’s state. Just type the command like this: uptime It displays output similar to the following: 15:03:21 up 32 days, 57 min, 3 users, load average: 0.13, 0.23, 0.27 This output shows the current time, how long the system has been up, the [...]

Using the su – command

by: acul November 23, 2011

If you’re logged in as a normal user, how do you do any system administration chores? Well, you become root for the time being. If you’re working at a terminal window or console, type su – Then enter the root password in response to the prompt. From this point on, you’re root. Do whatever you [...]

Wavelength and antennas

by: acul November 23, 2011

A term related to frequency is wavelength. Radio waves travel at the speed of light. The term wavelength refers to how far the radio signal travels with each cycle. For example, because the speed of light is roughly 300,000,000 meters per second, the wavelength of a 1-Hz radio wave is about 300,000,000 meters. The wavelength [...]