YouTip LogoYouTip

Linux Comm Slocate

# Linux slocate Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) The Linux slocate command searches for files or directories. slocate itself has a database that stores information about files and directories on the system. ### Syntax slocate **Parameters**: * -d or --database= Specify the directory where the database is located. * -u Update the slocate database. * --help Display help. * --version Display version information. ### Example Use the command "slocate" to display the path information of files whose names contain the keyword "fdisk". Enter the following command: $ slocate fdisk #Display path information for files containing the keyword fdisk in their names After executing the above command, the output information is as follows: $ slocate fdisk #Display path information for files containing the keyword fdisk in their names /root/cfdisk #List of found file paths /root/fdisk /root/sfdisk /usr/include/grub/ieee1275/ofdisk.h /usr/share/doc/util-Linux/README.cfdisk /usr/share/doc/util-Linux/README.fdisk.gz /usr/share/doc/util-Linux/examples/sfdisk.examples.gz [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Linux Comm SplitLinux Comm Rm β†’