Discover sftp command line example, include the articles, news, trends, analysis and practical advice about sftp command line example on alibabacloud.com
system that lacks a graphical interface, many people complain: why should we stick to the command line? Why not use a user-friendly GUI? In fact, the graphic interface is indeed efficient and simple in some aspects of the task, but in the face of some tasks, the graphic interface is far from enough. For example, batch installation and batch file processing.
Linu
In a Linux system, when you enter a command, and then press two times the TAB key, all available commands that begin with the characters you enter are listed. It's not new, maybe you already know. This feature is called the command line complement bash completion. By default, the Bash command
Python has two built-in modules to handle command-line arguments, one is getopt, and the Deep inPython is also mentioned in the book, can only handle command-line parameters, the other is Optparse, it is powerful, and easy to use, can easily generate standard, compliantCommand line
not contain the path within the compressed package $HAOZIP_CMD\HAOZIPC x all 1.Zip-o all 1FolderPanax Notoginseng - :: View the contents of the compressed package, do not understand the pressure theHAOZIP_CMD\HAOZIPC L all 1.Zip +PauseThe above code in the HAOZIPC is good pressure software installation directory of "HaoZipC.exe" program, if you want to detach from the installation environment to use, you need to extract the file: Basic Syntax
syntax a (add
specify do not have to be in . PHP as extensions, they can have arbitrary filenames and extensions.
Run the PHP code directly on the command line.
Php-r "Print_r (Get_defined_constants ());
When using this method, you should pay attention to the substitution of the shell variables and the use of quotation marks.
Note: Please read the above
] arrows to view the history of the command you typed in the current directory. When you see the command you want to use, press the [Enter] key.Clear = Clears the shell prompt screen. Typing it at the command line clears all the data displayed in this shell prompt screen.Exit = Logoff. Type it in the shell prompt to lo
Linux Command Line of history, historylinux
1. Use HISTTIMEFORMAT to display the timestampAfter you execute the history command from the command line, only the serial number of the executed command and the
)
For example, the contents of the following bat script:
echo/backup_tomcat.sh > Comd.txtEcho Exit >> Comd.txt
Putty-ssh-l%user%-pw%pwd%-P%port%%ip%-M comd.txt >> Aa.log
D:\Program Files (x86) \putty>psftp-hPuTTY Secure File Transfer (SFTP) clientRelease 0.63usage:psftp [Options] [User@]hostOptions:-V Print version information and exit-PGPFP print PGP key fingerprints and exit-B file Use specified Batchf
use the user name, password, and connection in a defined state, but will direct the request for the printer device to the printer attached to the computer, not to the printer connected to the network.
If the service name contains spaces, use quotation marks to enclose the content (for example, "service name").
Example
To pause the Server service, type:
NET Pause Server
. You can use this command when using shell hints. Type the first few characters of a command or file name, and then press the [Tab] key, which automatically complements the command or displays all commands that match the characters you type. 102 103[Up] and [down] arrows =Displays the command history. When you use the
management tools, such as powerful process Explorer. In fact, a secret tool that uses Windows itself can enforce most processes, including some very stubborn processes, which is the NTSD command.
Run the following command on the command line:
Ntsd-c q-p PID
The last PID refers to the ID of the process to terminate.
pointer array is called argv (argument value ). The system uses spaces to separate strings. In general, assign the program name to argv [0], and then assign the first string to argv [1.Let's take an example:
// C. C# Include "stdio. H"Int main (INT argc, char * argv []){Int count;Printf ("the command line has % d arguments:/N", argc-1 );For (COUNT = 1; count P
, and does not display prompt messages. This option overturns the "--Interactive "option.-V,--verbose displays informative operation information when executing the RM command.Table 5-8: RM optionsCommand Run resultRm. Le1 silently deleting filesRm-i? Le1 except before deleting the file, prompting the user to confirm the information, and the above lifeThe same effect.Rm-r le1 dir1 Delete files? le1, directory Dir1, and dir1 content.RM-RF le1 Dir1, except if the file Le1, or directory Dir1 does no
handling:
Python hello_cli.py--name Matz
Usage:hello_cli.py [options]
hello_cli.py:error:no such option:--name
If you haven't used Python's Optparse module, you might have been surprised and thought about using all these incredible tools that python can write. If you're just starting to touch python, you might be amazed at how Python makes everything so simple. The "XKCD" website has published a very interesting comic book on the theme "Python is so Simple" and has been inc
file type icon, but can represent different file types with colors and symbols.
Ls also has all the filters of the graphic interface tool, including whether to display hidden and backup files, and can also be sorted by extension, file size, modification time, and file version.
I prefer ls, especially its-l and-g parameters. They make all the attributes of the file display on one line.
In contrast, it is impossible for you to view all attributes on an
Combine Scrapy official documentation to learn and organize some of the content of your own learning practicesScrapy is scrapy controlled by command-line tools. This is what we call the "scrapy tool" to distinguish it from subcommands. For subcommands, we call this "command" or "Scrapy commands".The Scrapy tool provides multiple commands for different purposes, a
Linux command line bulk replace the string in multiple files "to Baidu Library" one is the Mahuinan method, one is the Sumly method, one is the 30T method is as follows: First, Mahuinan method: The SED command allows you to bulk replace strings in multiple files. Sed-I."s/Original string/new string/g"' Grep original string-RL directory ' For
,!^ obtains the first parameter from the previous command:# CP Anaconda-ks.cfg Anaconda-ks.cfg.bakAnaconda-ks.cfg# vi-5!^VI anaconda-ks.cfgTo replace a specified parameter with a specific commandIn the following example,!cp:2 searches the command history for a command that begins with CP and gets its second parameter:#
How to improve the efficiency of Linux Command Line-Linux general technology-Linux technology and application information, the following is a detailed description. I. Customize the/etc/inputrc File
By setting the INPUTRC environment variable (see the/etc/profile file), it mainly defines or changes the definition of some function keys to better use the command
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.