Find code and diagrams at:
To find files and configurations in Linux you can use the find and whereis commands.
Whereis who’s you the folders where data for applications are stored. Find allows you to search for files and folders on the system.
Whereis:
Find:
Whereis
whereis php – shows where PHP files are stored.
You can run whereis from any directory and do not need to use sudo.
Find
Find allows you to search your system for files and folders. If you receive permission issues or an odd response try using sudo.
sudo find / -name ‘test.txt’ – command / location to start from (if left blank find starts from the folder you are in / argument / file being searched for.
-name – case sensitive search
find -name ‘test.txt’
-iname – case insensitive search
find -iname ‘test.txt’
-user – searches based on user owner
find -user ‘bob’
-cmin – searches based on time since a file was modified
find -cmin -10
Nguồn: https://ftlinuxcourse.com
Xem thêm bài viết khác: https://ftlinuxcourse.com/lap-trinh-linux
Xem thêm Bài Viết:
- Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
- Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
- Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
- Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
- Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết