• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for February 2018

How to clear the buffer/pagecache (disk cache) under Linux

by admin

Are you facing a performance issue and you suspect it might be related to cache usage? High cache usage should not normally cause performance issues, but it might be the root cause in some rare cases. What is Memory Cache In order to speed operations and reduce disk I/O, the kernel usually does as much […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Understanding How Umask Controls the Initial File / Directory Permissions in Linux

by admin

Controlling Initial File / Directory Permissions When new files and directories are created in Linux, default permissions are initially set. These permissions are calculated by taking the default permissions of the files/directories created and subtracting the umask value from it. The umask is a four-digit octal number that represents the value of permissions that will […]

Filed Under: Linux

How to manage File and Directory Permissions/Ownerships in Linux

by admin

File Ownership Every file is owned by a specific user (or UID) and a specific group (or GID). The chown command can be used to change just the user or the user and group of a file. Here is an example of changing the owner of file “file1” to “user” and its “user” to users. […]

Filed Under: Linux

Determining disk usage in Linux using “du” command

by admin

Determining Disk Usage The du command shows the estimated disk space used by files and directories. If you execute du without any options it will output the sizes of all files starting in your current directory and all subdirectories of your current directory. Find out how much disk space the /home directory is using with […]

Filed Under: Linux

Linux OS Service ‘hplip’

by admin

HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux. The HPLIP project provides printing support for 1,292 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. (Note: Not all models are currently supported). The Hewlett-Packard […]

Filed Under: Linux, Linux Services

How to Copy / Move Files and Directories in Linux with “cp” and “mv” commands

by admin

Copy Files and Directories The cp command will copy files and directories or copy multiple sources to a destination directory. The basic syntax of the cp command is: # cp [options] source destination If you have multiple files/directories to be coped to a destination directory, use the below command syntax. # cp [options] source1 source2 […]

Filed Under: Linux

How to change the NIC device name in CentOS / RHEL 6

by admin

The post describes steps to rename a network interface card. Changing NIC device names involves shutting down the interface and bringing it up. For the purpose of this post, we will rename “eth0” interface to “eth1”. Adding udev Rule 1. Find the MAC address of device you wish to rename. # ifconfig eth0 eth0 Link […]

Filed Under: CentOS/RHEL 6, Linux

How to troubleshoot NFS transfer latency issues using “nfsiostat” in CentOS / RHEL

by admin

The nfsiostat command works like the iostat command except only for the NFS mount points. The nfsiostat gets input from /proc/self/mountstats and provides information about the input/output performance of NFS shares mounted in the system. The nfsiostat command is provided by the nfs-utils package. Understanding the nfsiostat command output (Examples Included) Below is a sample […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Understanding the nfsiostat command output (Examples Included)

by admin

The nfsiostat command works as iostat command for the NFS mount points on the server. It uses the file /proc/self/mountstats as input and provides information about the input/output performance of NFS shares mounted in the system. Below is a sample output from the nfsiostat command. The below table displays a short description of each column […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

« Previous Page

Primary Sidebar

Recent Posts

  • gml2gv Command Examples
  • glow Command Examples
  • glib-compile-resources Command Examples
  • glances Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright