Install from the given requirements file. This option can be used multiple times.
1
-i, --index-url <url>
Base URL of the Python Package Index (default https://pypi.org/simple). This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.
1
-f, --find-links <url>
If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files. If a local path or [file://](file:///) URL that’s a directory, then look for archives in the directory listing. Links to VCS project URLs are not supported.
-g # globally # Installing a package globally allows you to use the code in the package as a set of tools on your local computer. 参考: https://docs.npmjs.com/downloading-and-installing-packages-globally
--save # The –save option in npm install was used in older versions of npm to add a package to the dependencies section of the package.json file of your project. When you install a package using npm install <package-name> --save, npm would download and install the specified package and also add it as a dependency in your package.json file. However, starting from npm version 5.0.0, the –save option is no longer necessary. When you run npm install without any options, npm automatically saves the package to the dependencies section of package.json. 参考: https://www.geeksforgeeks.org/what-is-the-save-option-for-npm-install/#
-t # “Type” This option specifies the type of key to be created. Commonly used values are: - rsa for RSA keys - dsa for DSA keys - ecdsa for elliptic curve DSA keys 参考: https://www.ssh.com/academy/ssh/keygen
-C # Provides custom key comment (which will be appended at the end of the public key). 参考: https://en.wikipedia.org/wiki/Ssh-keygen
In Unix-like operating systems, any file or folder that starts with a dot character (for example, /home/user/.config), commonly called a dot file or dotfile, is to be treated as hidden – that is, the ls command does not display them unless the -a or -A flags ( ls -a or ls -A ) are used.
The number corresponds to what section of the manual that page is from; 1 is user commands, while 8 is sysadmin stuff. The man page for man itself (man man) explains it and lists the standard ones:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
MANUAL SECTIONS The standard sections of the manual include:
1 User Commands 2 System Calls 3 C Library Functions 4 Devices and Special Files 5 File Formats and Conventions 6 Games et. al. 7 Miscellanea 8 System Administration tools and Daemons
Distributions customize the manual section to their specifics, which often include additional sections.
netstat -tunlp # 查看端口号 -t或--tcp 显示TCP传输协议的连线状况。 -u或--udp 显示UDP传输协议的连线状况。 -n或--numeric 直接使用IP地址,而不通过域名服务器。 Show numerical addresses instead of trying to determine symbolic host, port or user names. -l或--listening 显示监控中的服务器的Socket。 Show only listening sockets. (These are omitted by default.) -p或--programs 显示正在使用Socket的程序识别码和程序名称。 Show the PID (process identifier) and name of the program that each socket belongs. 参考: https://www.runoob.com/linux/linux-comm-netstat.html https://www.computerhope.com/unix/unetstat.htm#:~:text=Description,interface)%20and%20network%20protocol%20statistics.
ps -ef # -e,Select all processes. Identical to -A. -f,Do full-format listing. This option can be combined with other Unix-style options to add additional columns. It also causes the command arguments to be printed. When used with -L, the NLWP (number of threads) and LWP (thread ID) columns are added. See the c option, the format keyword args, and the format keyword comm. 参考: https://www.computerhope.com/unix/ups.htm#:~:text=On%20every%20UNIX%2Dlike%20operating,to%20many%20distributions%20of%20Linux.
echo My name is Dave. # 在屏幕打印“My name is Dave.” 或 echo “My name is Dave.”(会更好一点)(替换上面的命令) # 在屏幕打印“My name is Dave.”
echo "Creating a new file." > sample.txt echo "Adding to the file." >> sample.txt # If we use the > redirection operator, the file is created if it does not exist. If the file does exist, the output from echo is added at the start of the file, overwriting any previous content. If we use the >> redirection operator, the file is created if it does not exist. The output from echo is added to the end of the file and doesn't overwrite any existing content of the file.
-s,--silent # Silent mode. Don't show progress meter or error messages. Makes curl mute. It still outputs the data you ask for, potentially even to the terminal/stdout unless you redirect it. 参考: https://www.computerhope.com/unix/curl.htm#
-j [jobs], --jobs[=jobs] # Specifies the number of jobs (commands) to run simultaneously. If there is more than one -j option, the last one is effective. If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.
-i, --install package-file... Install the package. If --recursive or -R option is specified, package-file must refer to a directory instead.
Installation consists of the following steps:
1. Extract the control files of the new package.
2. If another version of the same package was installed before the new installation, execute prerm script of the old package.
3. Run preinst script, if provided by the package.
4. Unpack the new files, and at the same time back up the old files, so that if something goes wrong, they can be restored.
5. If another version of the same package was installed before the new installation, execute the postrm script of the old package. Note that this script is executed after the preinst script of the new package, because new files are written at the same time old files are removed.
6. Configure the package. See --configure for detailed information about how this is done.
1 2
-?, --help Display a brief help message.
1 2 3
-L, --listfiles package-name... List files installed to your system from package-name. # 使用dpkg查看linux将软件安装到了什么地方(非官方)
-r, --kernel-release Print the kernel release. 例:输出:6.2.0-37-generic,解释:6.2.0 - The kernel version number.,37 - The kernel's specific release or build number.,generic - Indicates the kernel flavor. The generic flavor is a common choice for regular desktop and server systems.