Absolute and Relative Path

1. Absolute Path: An absolute path is defined as specifying the location of a file or directory from the root directory(/). In other words, we can say that an absolute path is a complete path from start of actual file system from “/” directory. 2. Relative Path: Relative path is defined as the path related…

Archive and Compress Files or Directories

Archive n Compress Files (Tar n Zip Command) An Archive file is a file that is composed of one or more files along with metadata. Archive files are used to collect multiple data files together into a single file for easier portability and storage, or simply to compress files to use less storage space.  Tar:…

Search (Locate n Find Command)

Search (Locate and Find Command) In Linux we can use Locate and Find command to search file or directory or content of the file.  locate— The locate command is used to locate a file in a Linux system, just like the search command in Windows. This command is useful when you don’t know where a file is…

Copy, Move n Rename Command

Copy, Move and Rename Command cp (Copy): The cp command will make a copy of a file for you. Example: “cp ramu.txt” will make an exact copy of from current directory to /home/raju/Desktop/raju directory. 2. Mv (Move/Rename):  The mv command will move a file to a different location or will rename a file. Examples are as follows: “mv file foo” will…

Create n Remove Directory n File

Create n Remove Directory and File mkdir: The mkdir command will allow you to create directories. Example: “mkdir rghimire” will create a directory called “rghimire”. 2. rmdir: The rmdir command will delete an empty directory. 3.touch: The touch command is used to create a file. It can be anything, from an empty txt file to an…

DNS Server Configuration | Linux | CentOS | RHEL

DNS Server Configuration on Centos 8 In Red Hat Linux (and most other Linux and UNIX systems), you implement DNS services by using the Berkeley Internet Name Domain (BIND) software. The Internet Software Consortium maintains BIND The basic components of BIND include the following: DNS server daemon (/usr/sbin/named):The named daemon listens on a port (port…