How to run shell scripts in Linux-linux operation and maintenance
$ bash test.sh 2、path/ script-name or ./script-name means to execute the script in the current path (the script needs to have execution permission), you need to change the permission of the script file to executable (that is, the file permission attribute for x bits). The specific method is: chmod a+x script-name. Then the script can be executed by executing the absolute path or relative path of the script. Note: In the production environment, the operation and maintenance personnel forgot to set the executable permission for the script, and then used it directly, resulting in an error. Therefore, the first bash script-name is recommended. $ chmod +x test.sh $ ./test.sh $ /home/me/test.sh 3, source script-name or. script-name The function of the source or “.” command is : Read in the script and execute the script, that is, execute the commands and statements of the relevant script file loaded and executed by source or “.” in the current shell, instead of generating a sub-shell to execute the commands in the file. Note: This is the biggest difference from other ways of executing shells. $ source test.sh $ . test.sh Other operating methods: sh test.sh dash test.sh zsh test.sh … For more related…
What is sshlinux-linux operation and maintenance
What is ssh linux? SSH (remote connection tool) connection principle: ssh service is a daemon process (demon), the system monitors the connection of the client in the background, and the process of the ssh server is called sshd, which is responsible for real-time monitoring of the client Request (IP 22 port), including the exchange of public keys and other information. The ssh server consists of 2 parts: openssh (provides ssh service) openssl (provides encryption program) The ssh client can be connected with XSHELL, Securecrt, Mobaxterm and other tools The working mechanism of SSH When the server starts up, it generates a key (768bit public key), and the local ssh client sends a connection request to ssh The server, the server checks the data and IP address sent by the connection point client, and sends the key (768bits) to the client after confirming that it is legal. At this time, the client combines the local private key (256bit) and the server’s public key (768bit) into an encrypted key. The key pair key (1024bit) is sent back to the server, and the connection is established through key-pair data transmission. SSH encryption technology Encryption technology: transmission process, data encryption. 1.SSH1 does not verify…
How to check the number of bits of the machine in Linux-linux operation and maintenance
linux php Write your review! Let’s make a fuss, see everything Member Login | User Registration recommended reading web php cli memory overflow, understanding of PHP memory overflow, command line and web service execution methods This article mainly introduces the understanding of the two execution methods of PHP memory overflow, command line and Web service. It has certain reference value. Now I will share it with you. [detailed] Crayon Shinchan 2023-08-25 16:54:05 web Linux basics explain sed command in detail Overview sed is a stream editor (StreamEDitor). It is mainly used to automatically edit one or more files; simplify repeated operations on files; write conversion programs, etc. This article mainly describes: sed working principle sed command format and common options should … [detailed] Crayon Shinchan 2023-08-25 16:53:45
How to check whether Linux has installed gcc-linux operation and maintenance
php linux Write your review! Let’s make a fuss, see everything Member Login | User Registration recommended reading shell Is there anything you don’t know about the common means of hacking into the Linux system? Click on the above “Brother Migrant Technology Road” and select “Top or Star” to share different dry goods with you at 10 o’clock every day. Write a php sentence and go up the door: [jobcruitwa64-054rankup_log]$echo … [detailed] Crayon Shinchan 2023-08-25 16:51:31 php What are the main applications of javascript web front-end|front-end question and answerjavascriptweb front-end-front-end question and answer diamond image source code, vscode quick finishing code, ubuntuftp remote, tomcat user manual, crawler burpsuit, php access symbol … [detailed] Crayon Shinchan 2023-08-25 16:29:34
How to close the linux port-linux operation and maintenance
How to close the linux port? How to open and close ports in Linux 1. Check which ports are opened netstat -anp 2. Close the port number: iptables -A OUTPUT -p tcp –dport port number-j DROP 3. Open the port Number: iptables -A INPUT -ptcp –dport port number -j ACCEPT 4. Save settings service iptables save 5. The following is how to use the linux open port command. nc -lp 23 & (open port 23, ie telnet) netstat -an | grep 23 (check whether port 23 is open) 6. Linux open port command Each open port needs a corresponding listening program recommended Linux Video tutorial, learning address: #course/list/33.html The above is the detailed content of how to close the linux port. For more, please pay attention to other related articles on 1024programmer.com!
How to check the hard disk of linux-linux operation and maintenance
linux html php Write your review! Let’s make a fuss, see everything Member Login | User Registration recommended reading jsp Linux basics explain sed command in detail Overview sed is a stream editor (StreamEDitor). It is mainly used to automatically edit one or more files; simplify repeated operations on files; write conversion programs, etc. This article mainly describes: sed working principle sed command format and common options should … [detailed] Crayon Shinchan 2023-08-25 16:53:45 jsp HDOJ 2577 HowtoTypeTimeLimit:20001000MS(JavaOthers)MemoryLimit:3276832768K(JavaOthers)TotalSubmiss… [detailed] Crayon Shinchan 2023-08-25 16:55:34
How to check the number of bits in the linux system? -Linux operation and maintenance
How to check the number of bits in the linux system: Method 1 After opening the terminal, enter the command [getconf LONG_BIT], then press Enter, and it will return to the system The number of digits; [root@localhost mysql-5.1.57]# getconf LONG_BIT 64 Method 2 Still in the terminal, enter the command [uname -a], press Enter According to the returned information, if there is the word [x86_64] then The description is 64-bit, if not, it is 32-bit Recommended study: Linux video tutorial The above is how to check how many bits are in the Linux system? For more details, please pay attention to other related articles on 1024programmer.com!
How to enter the linux terminal command interface – linux operation and maintenance
linux php Write your review! Let’s make a fuss, see everything Member Login | User Registration recommended reading md5 Is there anything you don’t know about the common means of hacking into the Linux system? Click on the above “Brother Migrant Technology Road” and select “Top or Star” to share different dry goods with you at 10 o’clock every day. Write a php sentence and go up the door: [jobcruitwa64-054rankup_log]$echo … [detailed] Crayon Shinchan 2023-08-25 16:51:31 cmd Remember an actual combat MSSQL injection bypassing WAF This test is an authorization test. The injection point has a verification code at the user name logged in in the background. You can bypass the verification by deleting the cookie and the verification code field. Add a single quote, report an error and11 connection reset – intercepted by WAF, change the case and replace the space with M .. . [detailed] Crayon Shinchan 2023-08-25 16:52:30
How to create users in Linux-linux operation and maintenance
We know that linux is a multi-user operating system. The default root user has a lot of administrative privileges. If we want others to use some privileges, we need to create a new user. So how to add it? Let’s talk about these commands. This article comes from the PHP Chinese website, Linux system tutorial column, please continue to pay attention to this article for more related tutorials column! The above is the detailed content of how to create users in Linux. For more information, please pay attention to other related articles on 1024programmer.com!
How to set Linux as Chinese language-linux operation and maintenance
php linux Write your review! Let’s make a fuss, see everything Member Login | User Registration recommended reading post php cli memory overflow, understanding of PHP memory overflow, command line and web service execution methods This article mainly introduces the understanding of the two execution methods of PHP memory overflow, command line and Web service. It has certain reference value. Now I will share it with you. [detailed] Crayon Shinchan 2023-08-25 16:54:05 post Linux basics explain sed command in detail Overview sed is a stream editor (StreamEDitor). It is mainly used to automatically edit one or more files; simplify repeated operations on files; write conversion programs, etc. This article mainly describes: sed working principle sed command format and common options should … [detailed] Crayon Shinchan 2023-08-25 16:53:45