10 Linux Commands For Finding Files And Directories
1. find /-name file1This command is used in order to search for a directory or file from the root system.2. find /-user user1This is a command that allows you to find files and directories that are owned by user1.3. find / home/user1-name \ * binThis command helps you when you need to find files that have the .bin extension in the home/user1 directory.4. find / usr / bin-type f-atime +100This command is useful for finding the finally files that haven't been used in the last 100 days.5. find / usr / bin-type f-mtime -10This command works like the last one, but searches in the last 10 days.6. find /-name \ * rpm-exec chmod 755 '{}' \;Use this command when you need to find and modify files with specific permissions. In the above command you're looking for files with permissions 'rpm'.7. find /-xdev-name \ * rpmThis command helps you find files that end with extensions while ignoring removable devices.8. locate \ * psWith this you can find files with ps.9. whereis haltThis command is useful when you need to see the location of a binary file or the source of the support.10. Which haltThis will show you the complete path of a binary or executable file.
15 Linux Command That Can Be Used To View System Info
1. archThis command will show you the architecture of your system.2. uname-mThis is another command to view the architecture of the system.3. uname-rThis command is used to check the kernel version that is being used in the system.4. dmidecode-qThis command give you the hardware components in your system.5. hdparm-i / dev / hdaThis is the command that shows the characteristics of your hard disk.6. hdparm-tT / dev / sdaThis command is used in order to conduct tests readings on hard drives.7. cat / proc / cpuinfoThese commands can help you in getting CPU information.8. cat / proc / interruptsThese commands are used to interrupt a process.9. cat / proc / meminfoThis command verifies the memory usage in your system.10. cat / proc / swapsThese commands are used in order to swap files.11. cat / proc / versionThese three commands can display the kernel version for your system.12. cat / proc / net / devThese four commands are used to view the network adapters and display statistics of the system.13. cat / proc / mountsThis command shows you the mounted file system.14. lspci-tvIf you need to view the PCI display devices then this is the command to use.15. lsusb-tvThis is the command for displaying USB devices.
Không có nhận xét nào:
Đăng nhận xét