Posts

Showing posts from July, 2024

How to Find File on Redhat 8

How to Find/Search File and Folder on RHEL 8 There are two common commands are available to search files and directories inside the file system in redhat/centos Linux base operating system. The command that we will discuss with examples to search files and directories are “find” and “locate”. Find: The command “find” is use to search the files and directories inside the local file system in real time as per the given criteria command line argument. User id that use to find the file inside the directory must have the read and executable permission of the directory. The first argument in find command is the directory if directory is not define in command, find command search file on the current working directory and their sub directories. Multiple options are available to find the files, searches can be based on the file name, file size, last modified time stamp, and other file characteristics in any combination. The find utility is install during the installation of operating system. If...

How to Create Softlink and Hardlink on Redhat 8

Create Softlink and Hardlink on Redhat 7/Redhat 8/Redhat 9/Centos 7/Centos 8 Hard links and soft links to make the multiple name points to same file. Soft link: Soft link is also known as symbolic link or short pointer. By use of Soft link main file (regular file) link with multiple Soft link (non-regular files). With the help of soft link important files can be read from less privilege user id. In soft link main file (regular file) remain safe if soft link non-regular file delete but if main file (regular file) delete all other soft link non-regular files become unusable because it work as readable copy of main file. Soft link main file (regular file) and soft link non-regular files have different inode number, soft link non-regular files have also different permission as soft link main file (regular file) and the permission of soft link non-regular files is not change. Soft link allow link files between the directories and different file systems (mount points). The soft link in Lin...