≡ Menu

command cat

Linux / Unix Command To Find Out NFS Clients Connected To My NFS Server

How do I find out how many nfs clients are connected to NFS server running on Red Hat Enterprise Linux?
[click to continue…]

Linux / Unix: Cat Command Examples

cat command

I am a new Linux and Unix system user. How do I use cat command on Linux or Unix-like operating systems? Can you provide basic examples and syntax usage for cat command?
[click to continue…]

Linux Find Out GNU gcc Compiler Version Used To Compile Running Kernel

I've multiple version of gcc installed on my systems as follows:

ls -l /usr/bin/gcc*
lrwxrwxrwx 1 root root 7 Jan 11 05:20 /usr/bin/gcc -> gcc-4.4
-rwxr-xr-x 1 root root 239528 Sep 21 2010 /usr/bin/gcc-4.3
-rwxr-xr-x 1 root root 255536 Nov 15 2010 /usr/bin/gcc-4.4

I need to build a nvidia device driver using the same version of GNU compiler as was used to compile the currently running kernel. How do I find out the version of my GNU gcc compiler that was used by upstream Linux distribution to compile and pack my binary Linux kernel?
[click to continue…]

HowTo: Find Out RHEL 6 / CentOS 6 Kernel Version

How do I find out my RHEL (Red Hat Enterprise Linux) 6 Linux kernel version number running on HP server?
[click to continue…]

Faillog in Linux: Display Records of Login Failure

I'm running RHEL on HP server. This server allows to login to reset of the LAN from the Internet. How do I find out failed login records under Linux operating systems?
[click to continue…]

Show Linux Partitions Command

How do I display or show a list of all hard disk drive partitions under Linux operating systems?
[click to continue…]

Linux Command: Show Linux Version

What command I need to type to display Linux kernel version and other information such as Linux distribution name? How do I check Linux kernel version number?
[click to continue…]

HowTo: Edit a File Under Linux

Can tell me a Linux commands to edit a text file?
[click to continue…]

OpenBSD Change, Add or Display Default Gateway

How do I change existing openbsd gateway (openbsd routing) IP address? How do I see current routing table under OpenBSD?
[click to continue…]

Howto rebuilding a RAID array after a disk fails

Q. I have two disk-mirrored array, suppose if one of my disk in mirrored RAID array fails, then I will replace that disk with new one (I have hot swapping SCSI drives). Now question is how I rebuild a RAID array after a disk fails.

A. A redundant array of inexpensive disks, (redundant array of independent disks) is a system, which uses multiple hard drives to share or replicate data among the drives. You can use both IDE and SCSI disk for mirroring.

If you are not using hot swapping drives then you need to shutdown server. Once hard disk has been replaced to system, you need to use used raidhotadd to add disks from RAID-1, -4 and -5 arrays, while they are active.

Assuming that new SCSI disk is /dev/sdb, type the following command:# raidhotadd /dev/mdX /dev/sdbReplace /dev/mdX with actual raid device name (e.g. /dev/md0). While array is under construction, you can see progress and other information by typing following command:# cat /proc/mdstat

See also: