How to check for bad blocks

Scenario / Question: How do I check my hard drive for bad blocks and if any bad blocks are found add them to the bad block inode to prevent them from being allocated in the future. Solution / Answer: Run fsck and have it run bad blocks program. This allows fsck to fix any bad blocks that are [continue...]

PULSEAUDIO: Unable to connect: Connection refused

Scenario / Question: Sound stops working and I get the error PULSEAUDIO: Unable to connect: Connection refused Solution / Answer: Find out if anything is blocking sound, kill the processes and restart pulseaudio Blocking Sound: Run the command to see what processes are using sound: # fuser -v [continue...]

Erase MBR

Scenario / Question: How do I remove a third party boot loader from the MBR Solution / Answer: Erase the first 512 bytes of the harddrive to remove the bootloader Erase MBR Using a linux boot cd: # dd if=/dev/zero of=/dev/hda1 bs=512 count=1 Windows dos boot disk: fdisk /mbr Windows XP recovery [continue...]

Using Linux RPM Command

Scenario / Question: How do I install software packages using rpm. How do I list what software packages are installed. How do I list information about a package. How do I list files associated with a package. How do I remove software packages I do not need. How do I verify an installed package [continue...]

Linux TOP command

The linux top command is the Command Line equivalent to Task Manager in windows. Question / Scenario: How do I determine CPU and Memory utilization, based on running processes. Answer / Solution: Use the TOP command in linux. TOP Top command provides a real-time look at what is happening with [continue...]

Replacing failed Raid Drive

Scenario / Question: A drive has failed in my raid 1 configuration, and I need to replace it with a new drive. Solution / Answer: Use mdadm to fail the drives partition(s) and remove it from the RAID array. Physically add the new drive to the system and remove the old drive. Create the same [continue...]

links or shortcuts in linux

Today we will cover links or in the Windows world, shortcuts. Linking lets you refer to a file or directory, and you can refer to file or directory using a different names. The command for creating a link in linux is the “ln” command. Linux has different types of links called [continue...]

Find last reboot time and date on linux

Scenario / Question: How do I find out the last reboot or shutdown time and date of a linux system. Solution / Answer: The utility called LAST will provide the last reboot or shutdown time and date, and also list the sessions of users logged in at a specific date and time. LAST Reboot There are [continue...]

Reconnect or login to existing session

Scenario / Question: I logged into an ssh session on a remote computer and lost my connection, how do I reconnect to the same session ? This trick will help users and system administrators become less frustrated when working on remote systems, and not worry about losing their connection to the [continue...]

Moving and Renaming Directories and Files

Now that we know how to create directories and files we need to be able to rename them and move them. In Linux the command to move and rename is the same ! command to rename and move directories and files NAME mv – move (rename) files SYNOPSIS mv [OPTION]… [-T] SOURCE DEST mv [continue...]

« Previous PageNext Page »