In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "what are the Linux file transfer commands", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what are the Linux file transfer commands" this article.
Uuto command
The Linux uuto command transfers the file to the remote UUCP host.
Uuto is a script file, which actually executes uucp, which is used to transfer the file to the remote UUCP host and notify the user on the remote host by email when the work is done.
Grammar
Parameters:
For relevant parameters, please refer to the uucp instruction.
Example
Transfer the file to the tmp directory of the remote UUCP host localhost, and enter the following command directly at the command prompt:
Uupick command
The Linux uupick command processes incoming files.
When other hosts send files in through UUCP, they can be checked out using the uupick instruction.
Grammar
Parameters:
-I or-config specifies the profile.
-s or-system processes files sent by the specified host.
-v or-version displays version information.
-help displays help.
Example
Process the files sent by the host localhost. Enter the following command directly on the command line:
This command usually has no output.
Uucp command
The Linux uucp command is used to transfer files between Unix systems.
UUCP is a protocol that connects Unix systems through serial lines. Uucp uses UUCP protocol, and its main function is to transfer files.
Grammar
Parameter description:
-c or-nocopy do not need to copy files to the buffer.
-C or-copy copies the file to the buffer.
When transferring files,-d or-directiories automatically creates the necessary directories in [destination].
-f or-nodirectiories aborts execution of the job if it needs to establish a directory in [destination] when transferring the file.
-g or-grade specifies the priority of file transfer jobs.
-I or-config specifies the uucp profile.
-j or-jobid displays the job number.
After the-m or-mail job ends, report whether the job completed successfully or not by email.
After the-n or-notify job ends, an email is sent to the specified user to report whether the job completed successfully.
-r or-nouucico do not start the uucico service program immediately, just send the job to the queue and execute it later.
-R or-recursive if the [source] is a directory, copy the entire directory including subdirectories to the [destination].
-t or-uuto treats a parameter as "hostname! user".
-v or-version displays version information.
-W or-noexpand do not add the current directory to the path.
-x or-debug starts the specified debugging mode.
-help displays help.
[source...] Specify the source file or path.
[purpose] specify the target file or path.
Example
Transfer all files under the temp/ directory to the Public/ directory under the uucp public directory of the remote host localhost. Enter the following command on the command line:
This command usually has no output
Uucico command
The Linux uucico command UUCP file transfer service.
Uucico is a file transfer tool used to handle uucp or uux sending to queues. Uucico has two modes of operation: active mode and subsidiary mode. When in active mode, uucico calls the remote host; when in satellite mode, uucico accepts calls from the remote host.
Grammar
Parameter description
-c or-quiet do not change the contents of the record file and update the current status when no work is performed.
-C or-ifwork invokes the host specified by the-s or-S parameter when there is work to be performed.
-D or-nodetach do not go offline with the control terminal.
-e or-loop executes in adjunct mode, and a prompt screen for login appears.
-f or-force reinvokes the host without waiting for any time when the execution error occurs.
-I or-stdin specifies the type of connection port when using a standard input device.
-I-config specifies the profile to be used.
Either-l or-prompt shows a prompt for login.
-p or-port specifies the connection port number.
-Q or-quiet do not start the uuxqt service program.
-R0 or-slave starts in satellite mode.
-s or-system calls the specified host.
-u or-login specifies the user account to log in, but does not allow you to enter any login account.
-v or-version displays version information and ends the program.
When-w or-wait is in active mode, when the call action is executed, a prompt screen asking for login appears.
-x or-X or outgoing-debug starts the specified debugging mode.
-z or-try-next when the execution is unsuccessful, try the next choice without ending the program.
-help displays help and ends the program.
Example
Start the uucico service using active mode. Enter the following command directly at the command prompt:
Tip: this command is generally not output.
Tftp command
The Linux tftp command is used to transfer files.
FTP allows users to download files stored on a remote host and upload files to a remote host for placement. Tftp is a simple text mode ftp program that uses instructions similar to FTP.
Grammar
Operation instructions:
Connect: connecting to a remote tftp server
Mode: file transfer mode
Put: uploading files
Get: downloading files
Quit: exit
Verbose: displays detailed processing information
Tarce: displays the package path
Status: displays current status information
Binary: binary transfer mode
Ascii:ascii transfer mode
Rexmt: sets the timeout for packet transmission
Timeout: sets the timeout for retransmission
Help: help information
?: help information
Example
Connect to the remote server "218.28.188.288", and then use the put command to download the file "README" in the root directory, using the following command:
You can take appropriate actions after connecting to the server, as follows:
Ncftp command
The Linux ncftp command is used to transfer files.
FTP allows users to download files stored on the server host and upload the files to the remote host for placement.
NcFTP is a leader in text-mode FTP programs, with a variety of features, including displaying transfer rates, download progress, auto-resume, bookmarking, firewalls and proxy servers.
When no user name is specified, the ncftp command automatically attempts to connect to the remote FTP server using the anonymous account anonymous, without requiring the user to enter the account number and password.
Grammar
Parameter description:
-u specifies the user name to log in to the FTP server
-p set user password
-P specifies the FTP port number, which defaults to 21
-j specified account number
-h help information
-v version information
Example
Use the ncftp command to connect to the FTP server anonymously.
For example, if you want to connect to the ftp.kernel.org server anonymously and do not want to enter an anonymous user name such as anonymous, you can directly use the ncftp command:
Get the following information:
Tip: the command prompt for ncftp is "ncftp / >", not "ftp / >" in ftp.
Use the ncftp command to operate and download files.
The command of ncftp is basically the same as ftp. For example, you can use the "cd" command to change the current directory in the FTP server, use the "ls" command to list the current directory contents, use the "get" command to download the README file under the "/ pub" directory, use "quit" to leave ncftp, and so on. The operation results are as follows:
Unlike ftp, ncftp prompts you whether to save the FTP server as a bookmark so that you can log in next time, and you can customize the book signature and other operations, as shown below:
Ftpshut command
The Linux ftpshut command shuts down the FTP server at the specified time.
This directive provides the system administrator with the ability to shut down the FTP server at a set time and notify the user by issuing a warning message before shutting down. If the shutdown time is set to "none", the server will be shut down immediately. If you use the "+ 30" setting to indicate that the server shuts down after 30 minutes, and so on, assuming the format of "1130" means that the server will shut down at 11:30 every day, the time format is 24-hour. After the FTP server is shut down, a file named shutmsg is generated in the / etc directory, which can be deleted and the FTP server function can be started again.
Grammar
Parameters:
-d cut off all FTP connection time.
-l time to stop accepting FTP login.
Example
Shut down the FTP server at 11:00 in the evening, and deny new FTP logins 5 minutes before shutdown, and close all ftp links in the first 3 minutes with a warning, using the following command:
Ftpwho command
The Linux ftpwho command is used to display all current user information logged in as FTP.
Execute this instruction to know who are currently logging in to the system using FTP and what they are doing.
Grammar
Parameter description:
-v displays version information
Example
To query which users are logging in to the FTP server, you can directly use the following command:
The command has the following output:
Ftpcount command
The Linux ftpcount command is used to display the number of users currently logged in as FTP.
Execute this directive to know the number of people currently logging in to the system using FTP and the upper limit of the number of FTP logins.
Grammar
Parameter description:
-f: specify the path to the settings file.
-HMAT help: displays help information.
Example
Ftpcount can directly query the number of users on the FTP server by using the following command:
The command has the following output:
Lprm command
The Linux lprm command is used to remove a job from the printer storage column.
Unfinished printer work is placed in the printer storage column, and this command can be used to cancel work that is often not sent to the printer. Since each printer has a separate storage column, you can use the-P command to set the printer you want to work. If it is not set, the system default printer will be used.
This command checks whether the user has sufficient permission to delete the specified file, which is generally available only to the owner of the file or the system administrator.
Grammar
Example
Remove work 1123 from the printer hpprinter
Remove work 1011 from the preset printer
Lpr command
The lpr (line printer, print by Line) utility is used to place one or more files in a print queue waiting to be printed.
Lpr can be used to send materials to local or remote hosts for processing.
Grammar
Parameters:
-p Printer: sends the data to the specified printer Printer, with a default value of lp.
Example
The following command line prints the report file on the printer named mailroom:
Multiple files can be printed using a single print command, and the following command line prints 3 files on a printer named laser1:
Lpq command
The Linux lpq command is used to view the status of a print queue, which can view the status of the printer queue and the print tasks it contains.
Grammar
Lpq [l] [P] [user]
Parameter description:
-P specifies a printer, otherwise use the default printer or the printer specified by the environment variable PRINTER
-l print information about all the files that make up the job.
Example
An empty queue for the system's default printer printer.
If the printer is not specified in advance (using the-P option), the default printer is displayed. If you send a print task to the printer and then look at the print queue, you will see the following list.
Lpd command
The Linux lpd command is a resident printer manager that manages local or remote printers based on the contents of / etc/printcap.
Each printer defined in / etc/printcap must have a corresponding directory in / var/lpd, where files starting with cf represent a table job waiting to be sent to the appropriate device. This file is usually generated by lpr.
Lpr and lpd make up a system that works offline, and when you use lpr, the printer doesn't need to be available immediately, or even exist.
Lpd automatically monitors the condition of the printer and sends the file for processing as soon as the printer is online. This means that all applications do not have to wait for the printer to complete the previous work.
Grammar
Parameter description:
-l: displays some debugging messages on standard output.
# port: in general, lpd uses getservbyname to get the appropriate TCP/IP port, and you can use this parameter to force lpd to use the specified port.
Example
This program is usually executed by the program in / etc/rc.d during the startup phase of the system.
Bye command
The Linux bye command is used to break the FTP connection and end the program.
In ftp mode, enter bye to interrupt the current connection job and end the execution of the ftp.
Grammar
Ftp command
The Linux ftp command sets file system-related functions.
FTP is the standard file transfer protocol of ARPANet, and this network is the predecessor of Internet today.
Grammar
Parameters:
-d shows the instruction execution process in detail to facilitate debugging or analysis of program execution.
-I turn off the interactive mode without asking any questions.
-g turns off the extension of the local host file name to support special characters.
-n does not use automatic login.
-v shows the instruction execution process.
Example
For example, log in to the ftp.kernel.org server anonymously using the ftp command, which is the official server of the Linux kernel. You can use the following command:
The above is all the contents of the article "what are the Linux file transfer commands?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.