Thứ Ba, 22 tháng 4, 2014

Linux Commands

10 Linux Commands For Finding Files And Directories

1. find /-name file1
This command is used in order to search for a directory or file from the root system.
2. find /-user user1
This is a command that allows you to find files and directories that are owned by user1.
3. find / home/user1-name \ * bin
This 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 +100
This 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 -10
This 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 \ * rpm
This command helps you find files that end with extensions while ignoring removable devices.
8. locate \ * ps
With this you can find files with ps.
9. whereis halt
This command is useful when you need to see the location of a binary file or the source of the support.
10. Which halt
This will show you the complete path of a binary or executable file.

15 Linux Command That Can Be Used To View System Info 

1. arch
This command will show you the architecture of your system.
2. uname-m
This is another command to view the architecture of the system.
3. uname-r
This command is used to check the kernel version that is being used in the system.
4. dmidecode-q
This command give you the hardware components in your system.
5. hdparm-i / dev / hda
This is the command that shows the characteristics of your hard disk.
6. hdparm-tT / dev / sda
This command is used in order to conduct tests readings on hard drives.
7. cat / proc / cpuinfo
These commands can help you in getting CPU information.
8. cat / proc / interrupts
These commands are used to interrupt a process.
9. cat / proc / meminfo
This command verifies the memory usage in your system.
10. cat / proc / swaps
These commands are used in order to swap files.
11. cat / proc / version
These three commands can display the kernel version for your system.
12. cat / proc / net / dev
These four commands are used to view the network adapters and display statistics of the system.
13. cat / proc / mounts
This command shows you the mounted file system.
14. lspci-tv
If you need to view the PCI display devices then this is the command to use.
15. lsusb-tv
This is the command for displaying USB devices.

Không có nhận xét nào:

Đăng nhận xét