How to retrieve and change partition’s UUID Universally Unique Identifier on linux

On some unix systems a hard drives partition is referred by to as Universally Unique Identifier( UUID ) instead of the location of the it relevant block device file for example like in /etc/fstab: UUID=A00CB51F0CB4F180 /my/moutn/point vfat defaults,umask=007,gid=46 0 0 In this case it would be harder to find which partition is mounted behind /my/moutn/point.Continue reading “How to retrieve and change partition’s UUID Universally Unique Identifier on linux”

Linux modprobe Command Examples to View, Install, Remove Modules

modprobe utility is used to add loadable modules to the Linux kernel. You can also view and remove modules using modprobe command. Linux maintains /lib/modules/$(uname-r) directory for modules and its configuration files (except /etc/modprobe.conf and /etc/modprobe.d). In Linux kernel 2.6, the .ko modules are used instead of .o files since that has additional information thatContinue reading “Linux modprobe Command Examples to View, Install, Remove Modules”

7 Linux lspci Command Examples to Get PCI Bus Hardware Device Info

::To check the latest NIC drivers in the database for the Smoothwall’s linux kernel:: #lspci -nnn (to check the ethernet controllers and the hardware detected by smoothwall)(To check the company ID and the unique hardware ID i.e. PCI-ID) (to check the ethernet controllers and the hardware detected by smoothwall) or # lspci -nn | grepContinue reading “7 Linux lspci Command Examples to Get PCI Bus Hardware Device Info”

procfs Linux ( /proc )

What is the function of procfs? Created in RAM when the computer boots. anything you write under proc will be temporary. /proc is a real-time api to the kernel. You can set kernel variables, or retrieve kernel information. procfs is analogically a file system simulation to be able to communicate with the kernel via theContinue reading “procfs Linux ( /proc )”

sysfs Linux ( /sys )

This is where HAL (Hardware Abstraction Layer) keeps the database of devices that are connected to the computer, but HAL uses udev to show these devices in a user-friendly way under /dev/ Linux has two complimentary virtual filesystems – sysfs and configfs. A virtual filesystem is a filesystem on top of another filesystem The mountContinue reading “sysfs Linux ( /sys )”

Conceptual Understanding of Sysfs, Udev, Hald, Dbus

These daemons all build on one another to provide services that for a Linux operating system to allow user space applications to accesses and manage hardware and hardware related events. The rough dependency order of the services are: sysfs – system file system – exports hardware information to user space. udev – there appears toContinue reading “Conceptual Understanding of Sysfs, Udev, Hald, Dbus”

4 Examples To Grant Normal User Root Privileges In Linux

“root” super user is the king of the users in Linux/Unix. Having root access grant full and unlimited access to the Linux box. I will show how to allow root access to a user in a Linux system. Typically root level access used in system administration. It’s always a pain to give others (users) rootContinue reading “4 Examples To Grant Normal User Root Privileges In Linux”

what is difference between /etc/shadow and /etc/passwd

passwd is the file where the user information (like username, user ID, group ID, location of home directory, login shell, …) is stored when a new user is created. shadow is the file where important information (like an encrypted form of the password of a user, the day the password expires, whether or not theContinue reading “what is difference between /etc/shadow and /etc/passwd”