Common commands for file search in Linux and Common commands for linux
File SEARCH Command: find
1. Search by file name
1.1. Search for precise files
Find path-name file name
1.2. Search for a file whose file name contains a string.
Find path-name * file name *
1.3. Search for files prefixed with a string.
Find path-na
Linux Network-related commands and linux Network-related commands
Ifconfig
Ifconfig is the command to view the NIC in centos6. In centos7, you must install the net-tools package before using it?Nic configuration file:/etc/sysconfig/network-scripts/ifcfg-ens33?Command: ifconfig
[root@shuai-01 ~]# ifconfigens33: flags=4
Network command: Ping (Test network connectivity)Network command: Ifconfig (view and set network card information)Note: When viewing the NIC information, enter the Ifconfig command directly.Network command: Last (lists user information for current and past logged-in systems)Network command: traceroute (shows the path and information of the packet to the target host)Network command: Netstat (display network-related information)Network command: Setup (configure the Network for permanent entry)Note
Linux Common Command Encyclopedia 100:
1, echo "AA" "Test.txt and Echo" BB "" test.txt//"empty the original file, and the content written to the file," "Put the content to the end of the file
2. chmod go+w-r/home/zhangy//To add Write permissions to group users and other users
3, TAR-TZVF test.tar.gz//List of archived content
4, Du-ah//view file list size
5, Du-sh//View the total size of all files
6, Echo ' 1+2 ' |bc-l//mathematical operation
the default permissions that correspond to the defaults.[[email protected] ~]# umask-su=rwx,g=rx,o=rx[[email protected] ~]# mkdir/tmp/test[[email protected] ~]# ls-ld/tmp/tes Tdrwxr-xr-x. 2 root root 4096 January 8 00:32/tmp/test[[email protected] ~]#When creating a new file, the default is no execute permission for security purposes. For example, create a new Test1.txt file under the TMP directory with the following default permissions:[Email protected] ~]# touch/tmp/test1.txt[[email protect
Network Communication commands (relatively simple ):
1. write/usr/bin/write
Write [user name]
Used to send information to a user, provided that the user has logged on to the server host
Otherwise, there is no way to leave a message for him. Therefore, write is a real-time communication tool.
End the communication with Ctrl + D
E.g. write guest
2. wall [write all]/usr/bin/wall
Used to broadcast information to all users
Wall [message] [file name]
3. pin
I. Linux basic management commands and Linux management commands
1. Shutdown and restart command
(1) shutdown command: shutdown [Option] Time
Option:-c. Cancel the previous shutdown command.
-H Shutdown
-R restart
Example: shutdown-h now # shut down immediately, root User
+ 10 # shutdown in 10 minutes
# Define the ab
Linux entry (1)-Basic commands and linux entry commands
This series of Linux beginners are the basic content I have summarized on the basis of "laruence's Linux private house dish", mainly to record my learning process, but also t
In Linux, how does one view, kill, and start processes? (Common commands), common linux commands
Keywords: linux Process query, killing process, Starting Process
1. Check the process
Ps command to find the process-related PID:
Ps a shows all programs under the current termin
Details of Common commands on Linux servers and Common commands on linuxI. User
1. useradd is used to create an account.
Useradd newname // create newnamepasswd newname // set change the password. After entering this command, you will be prompted to enter the password
2. delete a user
userdel newname
3. Switch users
su - youruser
4. ssh remote login
ssh -l root
Linux-Common commands for daily system management and Common commands for linux1: W view the overall load of the system. You cannot view the specific load, such as memory or disk.23:25:20 up 13 min, 2 users, load average: 0.00, 0.01, 0.01User tty from login @ IDLE JCPU PCPU WHATFlex tty1-0.01 s 0.01 s-bashFlex pts/0 192.168.75.1 0.00 s 0.02 s 0.00 s tmuxThe first
the syntax in the following format:Traceroute website(9) NetstatThe netstat command is used to display network-related information , where the path is/bin/netstat, with the syntax in the following format:netstat [options]where the-t option represents the TCP protocol, the-U option represents the UDP protocol,-L for listening,-R for routing, and-n for displaying the IP address and port number .such as: view the local listening port-----netstat-tlunView all network connections on this computer---
The command format for Linux is generally: command [-options] [parameters], such as ls-la/etc, you need to note:1) Individual commands are not used in this format, 2) when there are multiple options, can be written together; 3) There are simplified options (-) and full options, such as-a equals-all.(1) LSThe function of the LS command is to display the directory file , the original is a list, where the path
Linux yum commands and yum commands
Yum (all called Yellow dog Updater, Modified) is a Shell front-end Package Manager in Fedora, RedHat, and SUSE. Based on RPM package management, You can automatically download and install the RPM package from the specified server, automatically handle dependencies, and install all dependent software packages at a time, you do n
Common Linux commands and common linux commandsDirectory: relative path and absolute path.
Absolute path: the path is written in the root directory, for example,/usr/share/doc.
Relative Path: the path is not written by/. For example, if/usr/share/doc is to be written under/usr/share/man, you can write it as [cd .. /man: This is the relative path.
Cd: Swi
In the process of using Linux, we need to follow some parameters after each command. However, it is troublesome to manually add common parameters each time. Linux may use the command alias function to reduce your input. The following operations will be clear.
OS: RedHat as4.2
Ls-l list detailed document directory informationLs-Hl lists document sizes, in K.Ls-hlt lists documents sorted by Time
For the ab
Common commands for linux system monitoring and Common commands for linux monitoring
Original article: http://blog.sina.com.cn/s/blog_68f1c17001016uvy.html
Linux provides many tools used to monitor the system. These tools can be used to find the bottleneck that may lead to
Tags: absolute path installation file output Reference Declaration switch Directory View extLinux common commands (Common Commands for Linux)1. Statement, this article only write based on the Bash shell commonly used commands, if you encounter the command in the course of use, may be updated, the command has been repla
The command format for Linux is generally: command [-options] [parameters], such as LS-LA/ETC, you need to note the following: 1) Individual commands are not used in this format, 2) when there are multiple options, can be written together; 3) there is a simplified option (-) and a full option, such as-a equals-all.(1) LSThe function of the LS command is to display the directory file, the original is a list,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.