Article directory
- 1. An error occurred during the execution of the decompression command under linux: Not found in archive
- 2. Script execution error /bin/bash^M: bad interpreter: No such file or directory
- Three, the difference between useradd and adduser
- Fourth, the solution to error while loading shared libraries
- Five, the method of specifying the default parameters during apt installation
- 6. Modify the time zone to CST
1. An error occurred during the execution of the decompression command under linux: Not found in archive
Add the -C (uppercase) parameter, the C parameter is "create a new archive file"2. Script execution error /bin/bash^M: bad interpreter: No such file or directory
Reason: Write a script under windows and run it on linux1.vi or vim, enter the file editing mode
2. Press the Esc key, then press the colon key, enter set ff and press Enter, the format of the file will be displayed as dos
3. Press Esc key, then press the colon key, enter set ff=unix and press Enter, the file format has been successfully modified at this time, you can check it by pressing the previous step
Three, the difference between useradd and adduser
1. useradd will only create a user name, and will not create a user directory under the home path, nor will it create a password. Therefore, using this user to log in to the system cannot log in. In order to avoid this situation, you can use (useradd -m + username), it will create a folder with the same name in the /home directory, and then use ( passwd + username) to set a password for the specified username.
2.adduser creates a new user (adduser + username) so that a folder with the same name will be automatically created in the /home directory
Fourth, the solution to error while loading shared libraries
1. Find the path of the missing .so file, and then append its path to /etc/ld.so.conf
2. Run: /sbin/ldconfig –v to update the configuration
Five, the method of specifying the default parameters during apt installation
Requirements: You need to install some tools through scripts, such as alien, but when installing alien, you need to select a region, etc.
Wording: echo "parameter" | apt install alien -y