

How to Install Xrdp on Ubuntu 22.04 LTS (Jammy Jellyfish).How to Install locate on CentOS Server Categories MORE, Linux How to Install netcat(nc) command on Linux (RedHat/CentOS 7/8) in 5 Easy Steps Popular Apache Kafka Architecture Explained Using 4 Basic Components Zip command not found error in Linux (RedHat/CentOS 7/8)ġ0 Popular Examples of sudo command in Linux(RedHat/CentOS 7/8)

Kickstart post install script examples in RedHat/CentOS 7/8 P, -nofollow, -H don't follow trailing symbolic links when checking file m, -mmap ignored, for backward compatibility l, -limit, -n LIMIT limit output (or counting) to LIMIT entries


i, -ignore-case ignore case distinctions when matching patterns A, -all only print entries that match all patterns -b, -basename match only the base name of path names -c, -count only print number of found entries -d, -database DBPATH use DBPATH instead of default database (which is /var/lib/mlocate/mlocate.db) install locate -e, -existing only print entries for currently existing files -L, -follow follow trailing symbolic links when checking file existence (default) install locate Search for entries in a mlocate database. You can check other options that can be used with locate command using -help as shown below. It will simply not look into those directories where it is not allowed. You will not see "Permission Denied" error while running locate command from non-privileged user id like you get in find command search. Please make sure to check the access of the user before searching a file as current logged in user might not have permission to search in all the files and directories. This command will update the mlocate database. Verifying : 86_64 1/1Īfter successful installation of locate command in Linux you need to update the DB by running updatedb command as shown below. Now that when we know system is already updated with latest version it is time to install locate command using yum install -y mlocate command as shown below. No packages marked for update Step 3: Install mlocate package Loading mirror speeds from cached hostfile As you can see from below output, in this case system is already updated with the latest version so it is not detecting any more update. Step 2: Update Your Systemīefore going through the steps to install locate command in Linux you need to first update your System with latest version using yum update -y command as shown below. For more information Please check Step by Step: How to Add User to Sudoers to provide sudo access to User. Please note that here I am using root user to run all the below commands.You can use any user with sudo access
