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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for December 2017

What are different Samba Server Types

by admin

Samba Server type is configured in the [global] section of the /etc/samba/smb.conf file. Below are 3 types of Samba servers used while configuring Samba. Stand-Alone Server Domain Member Server Domain Controller Stand-Alone Server A stand-alone Samba server can be a workgroup server or a member of a workgroup environment and does not participate in a […]

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

How to use rndc command (command-line administration tool for named)

by admin

The rndc utility is a command-line tool to administer the named service, both locally and from a remote machine. To prevent unauthorized access to the service, rndc must be configured to listen on the selected port (port 953 by default), and an identical key must be used by both the service and the rndc utility. […]

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

Understanding DNS zone files

by admin

What are DNS zone files Information about domains in the DNS database is stored in zone files. A zone file consists of directives and resource records. Directives tell the nameserver to perform tasks or apply special settings to the zone. Resource records define the parameters of the zone and store host information. Directives are optional, […]

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

What happens in the Background when you execute the “useradd” command under Linux

by admin

When you execute the “useradd” command to add a new user on the server, in the background, there are several files updated and created. This post lists out the exact steps carried out in the background when you execute the below command. # useradd john 1. A new line for user john is created in […]

Filed Under: Linux

What is the purpose of .bash_profile file under User Home Directory In Linux

by admin

What is the purpose of ~/.bash_profile file Apart from having a home directory to create and store files, users need an environment that gives them access to the tools and resources. When a user logs in to a system, the user’s work environment is determined by the initialization files. These initialization files are defined by […]

Filed Under: Linux, Shell Scripting

Understanding chroot Jail

by admin

As the name implies, a chroot operation changes the apparent root directory for a running process and its children. It allows you to run a program (process) with a root directory other than /. The program cannot see or access files outside the designated directory tree. For example, you can run a program and specify […]

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

How to enable IPv6 on CentOS / RHEL 6

by admin

IPv6 is by default enabled on CentOS/RHEL 6 systems. But in case, if it was disabled for some reason, you can follow the short howto below to re-enable it. There are basically 2 ways to disable IPv6 on CentOS/RHEL 6. Disable IPv6 in kernel module (requires reboot) Disable IPv6 using sysctl settings (no reboot required) […]

Filed Under: CentOS/RHEL 6, Linux

How to Create a New /boot Partition in CentOS / RHEL

by admin

Here is a short howto on creating a new /boot partition in LVM and migrate the existing boot partition to this newly created boot partition. The procedure basically involves creating a new /boot partition and copy all the files/folders from the old /boot to new /boot partition. NOTE: You can try the below steps but […]

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

How to Enable Verbose Logging for VSFTPD

by admin

The main configuration file for VSFTPD is ‘/etc/vsftpd/vsftpd.conf‘. When verbose logging is enabled you need to disable the normal logging option, i.e xferlog_std_format=NO. Below are the 2 options, that come in picture while configuring the logging in vsftpd. xferlog_std_format — When enabled in conjunction with xferlog_enable, the log is written to the file specified in […]

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

View files using – cat, more, tail, head and wc commands

by admin

There are several commands that display information about a file in the read-only format. The file-viewing commands include the following: cat more tail head wc cat Command The cat command displays the content of one or more text files on the screen without pausing. $ cat filename For Example: # cat data.txt northwest NW Joel […]

Filed Under: Linux

Next Page »

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright