Linux Blog Posts

  • Find out what kernel drivers (modules) are loaded
    on Jul 3, 2010
    Q. How do I find out what Linux kernel drivers and loaded by my Linux distribution? How do I list device drivers (modules) loaded in memory?A. Under Linux use the file /proc/modules shows what kernel modules (drivers) are currently loaded. ...
  • Linux Files and File Permission
    on Feb 16, 2010
    Linux files are setup so access to them is controlled. There are three types of access:read write execute Each file belongs to a specific user and group. Access to the files is controlled by user, group, and what is called other. The term, other, is...
  • Basic Commands
    on Feb 16, 2010
    Command Example Description cat Sends file contents to standard output. This is a way to list the contents of short files to the screen. It works well with piping. cat .bashrc Sends the contents of the ".bashrc" file to the...
  • Bash Script Tutorial
    on Feb 16, 2010
     Lets begin this bash scripting tutorial with a simple "Hello World" script. Let's start with Learning the bash Shell: Unix Shell Programming1. Hello World Bash Shell ScriptOpen vi hello_world.sh#!/bin/bash# declare STRING variableSTRING="Hello...
  • Making and Managing Filesystems
    on Feb 16, 2010
    Programs used to manage filesystemsbadblocks(8) - Search a device for badblocks. The command "badblocks /dev/hda" will search the first partition of the first IDE hard drive for badblocks. cfdisk(8) - A partition table manipulator used...
  • Basic Networking Setup
    on Feb 16, 2010
    Required InformationTo enable networking, you must configure your network interface card or cards with an IP address and netmask. The kernel must have support for your cards compiled in, either as modular support or direct support. If you don't have...
  • Configuration and Diagnostic Tools
    on Feb 16, 2010
    System and Network Configurationlinuxconf - A GUI interactive interface available on Redhat 6.0 or later which includes netconf configuration. netconf - A GUI interactive interface available on Redhat 6.0 and later. kbdconf - A Redhat...
  • Configuration, Logging, and CRON
    on Feb 16, 2010
    System ConfigurationIn the subdirectory "/etc/sysconfig" are groups of files describing your system as follows:mouse - Describes the type of mouse and whether a three button mouse is emulated. keyboard - Describes the keyboard table. networ...
  • Network Tools and Terms
    on Feb 16, 2010
    Networking Tools arp Address resolution protocol Type "arp -a" to display entries in the arp cache. ifconfig A command line tool used to configure a network interface. There is a man page available for this progr...
  • Managing Users
    on Feb 16, 2010
    Commands for managing users:adduser(8) - Command used to add user accounts. chage (1) - Used to change the time the user's password will expire. chfn(1) - Change a user's finger information chsh(1) - Change a user's shell. chgrp (...
  • Using PAM
    on Feb 16, 2010
    PAM stands for Pluggable Authentication Modules. PAM is a library, used to control the function of various applications that have the capability to use the PAM libraries. PAM is based on a series of library modules, some of which depend on configurat...
  • Environment Settings, Shell Selection and Startup Scripts
    on Feb 16, 2010
    Environment Variables and SettingsThere are many environment variables, some of which are listed below. The command used to add or modify environment variables is the export builtin command provided by the bash shell. See the bash(1) man page for mor...
  • Process Control
    on Feb 16, 2010
    Tools for working with processesaccton - Turns process accounting on and off. Uses the file /var/log/pacct. To turn it on type "accton /var/log/pacct". Use the command with no arguments to turn it off. kill - Kill a process by num...
  • Mounting other partitions or operating systems at startup
    on Feb 16, 2010
    To mount other partitions at startup modify the "/etc/fstab" file. Each line in the file refers to a different filesystem. Fields are separated by whitespace. The primary filesystems must be mounted first, so they must be in correct order. Your nativ...
  • Accessing Removable Media
    on Feb 16, 2010
    Making a Linux Filesystem on a FloppyUse fdformat /dev/fd0H1440 To make a filesystem on the disk type "mkfs –t filesystem –c /dev/fd0H1440" where filesystem is the type of filesystem, usually ext2 (linux native). Mount the filesystem...
  • Some Thing About Linux
    on Feb 16, 2010
    About LinuxLinux was developed by Linux Torvalds at the University of Helsinki in Finland. He started his work in 1991. The effort expanded with volunteers contributing code and documentation over the internet. It is currently developed under the GNU...
  • Setting Time
    on Feb 16, 2010
    Programs for working with time and date are:clock - This is a soft link to hwclock. date(1) - Print or set the system date and time. hwclock(8) - Sets the hardware clock based on values entered on the command line. setclock(8) - Sets t...
  • Finding Files
    on Feb 16, 2010
    Finding FilesThere are three good methods of finding files in linux:The slocate database The whereis command The find command The slocate databaseTo use the locate command, you will need to have a slocate database set up on your system. On many syste...
  • Change file attribute in Linux
    on Oct 29, 2009
    The following command to write protect /root/test.txt file:[root@localhost]# chattr +i test.txtA file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the fi...
  • Mount NTFS file system in Linux
    on Oct 29, 2009
    Most of the linux distributions come without NTFS support. For adding NTFS support to linux we use NTFS-3G driver. The NTFS-3G driver is a free and commercially available and supported read/write NTFS driver for unix-type (Linux) operating systems. I...
Close