What are the Linux file transfer commands

Updated on technology 2024-03-20
5 answers
  1. Anonymous users2024-02-07

    Introduction to the file transfer commands under Linux SZ RZ SFTP SCP.

    secure ftp

    It is a file transfer management tool based on SSH security protocol. Since it is based on SSH, it will encrypt the user's password, data and other sensitive information during transmission, so it can effectively prevent user information.

    Stolen in the process of transmission, it has higher security than FTP. It is very similar to FTP in terms of functionality, not only can it transfer file data, but also can carry out remote file management (such as establishing, deleting, viewing files).

    lists, etc.). Although there is only one word difference between SFTP and FTP, the transmission protocol based on which it is based is different. Therefore, you can't use the SFTP client to connect to the FTP server, and you can't use it.

    FTP client to connect to the SFTP server.

    Establish a connection: SFTP user@host

    Upload a file from your local computer: put localpath

    For local operations corresponding to the remote, you only need to add "l" before the command, which is easy to remember.

    For example: lcd lpwd lmkdir

    Secure Copy (Remote File Copy Program) is also a file transfer command based on the SSH security protocol. Unlike SFTP, it only provides file transfer between hosts, not file management.

    Copy the local file to the remote directory directory.

    scp local_file remote_user@host:remote_folder

    Copy the local folder to the remote remote folder (with -r recursion).

    scp –r local_folder remote_user@host:remote_folder

    The above command is written in reverse, and the remote copy is made to the local computer.

    sz rz is a command based on the zmodem transport protocol. The transmitted data will be verified, and the transmission performance is very good. It is very convenient to use, but the premise is that the window side needs to have a telnet or SSH client that can support Zmodem, such as SecureCRT.

    Upload data to the remote: Run the rz be command, the client will pop up an upload window, and the user can select (you can select multiple files) to upload.

  2. Anonymous users2024-02-06

    1.uuto command

    The uuto command can be used to deliver files to the remote UUCP host and notify the user on the remote host by email when the work is completed.

    Syntax: uuto [file][purpose].

    Parameter: File: The file to be transferred.

    Purpose: Specify the target file or path.

    Instance. uuto.test1 localhost www Transfers the test1 file to the www directory of the remote UUCP host localhost.

    2.uupick command

    The uupick command is used to process incoming files.

    Syntax: uupick [-v] [-i "config file"] [s "host"] [x "level"] [help].

    Parameters: iConfig File or --config Config Profile: Specifies the config file.

    s "Host" or --system "Host": Processes files transferred from the specified host.

    v or —version: displays the version information.

    help: Displays help.

    Example: uupick-s localhost transfers files from host localhost.

    3.tftp command

    The TFTP command is used to transfer files, TFTP is a simple text-mode FTP program that uses similar instructions to FTP.

    Syntax: tftp (option) (parameter).

    Options: C: Specify the instruction to be executed immediately after the connection to the TFTP server is successful;

    m: specifies the file transfer mode. It can be ASCII or Binary;

    v: Displays the detailed execution process of the instruction;

    v: displays the command version information.

    Parameters: Instance:

  3. Anonymous users2024-02-05

    New File:

    1.New Folder Command: mkdir

    Folder name.

    2.Create a document using :vi

    File name, then you can file it, and press esc-> when exiting

    >x

    Just quit and save,:wq

    Exit after saving. :x

    Same as "wq". :q!

    If the content is not saved, force quit.

    Delete files:1Delete folder: rm

    Option] folder name. Such as RM

    rtest2.Delete file: rm

    Filename. Such as RM

    Modify File: command. vi

    File name so that you can open a file, and then click i to enter it. In fact, there are also commands: o, a. I'm more familiar with the use of i here: exit and click the esc key, and you will enter command mode.

    I've found some common commands here, as follows:

    x: Deletes the current character.

    dd: deletes the current row.

    2dd: Deletes the current and next lines of the file.

    u: Resume the previous operation.

    p: Copy previously deleted rows.

    yy: Copies the entire line where the cursor is located.

    2yy: Copy 2 lines and draw inferences.

    3yy。p: Paste it behind the cursor.

    View file:1There are 2 commands to view all files in the directory: ll

    and ls. ll will list all file information under that file, including hidden files, while ls will only list explicit file names.

    2.There are also two ways to view the contents of a file: cat and vi. CAT has three main functions: to display the entire file at once: $catfilenam

    Create a file from the keyboard: $

    cat>

    filename

    You can only create a new file, you can't already have a file, and you can't merge several files into one file:

    catfile1

    file2file

    vi is actually a file command, but files can also be viewed.

  4. Anonymous users2024-02-04

    List files and directories: ls

    Copy file: cp

    Move files: MV

    Move or replace directories: mv

    Delete file: rm

    Delete directory: rm

    rf creates a blank file: touch

    Regular expression matching: grep

    Find: find, whereis

    Create a folder: mkdir

    dir2,dir3,..

  5. Anonymous users2024-02-03

    List files and directories: ls

    Copy file: cp

    Move files: MV

    Move or replace directory: mv -f

    Delete file: rm

    Delete directory: rm -rf

    Create a blank file: touch

    Regular expression matching: grep

    Find: find, whereis

    Create folders: mkdir, dir2, dir3, ,..

Related questions
14 answers2024-03-20

1. Directly on the home page, click on the settings of the icon menu to enter. >>>More

11 answers2024-03-20

Hello, first of all, see if you have turned on the "Write Cache", in the Device Manager (to find your mobile hard disk device), properties, policies, try it after opening, if the hardware is fine, it can generally be solved. >>>More

12 answers2024-03-20

The bidding documents are a response to the requirements of the bidding documents, and the bidding documents generally contain three parts, namely the business part (credit part), the first part, and the technical part. >>>More

13 answers2024-03-20

exe is a program that can be executed, this is the extension of the file, see here for details.

8 answers2024-03-20

The following three points should be paid attention to in the clarification and modification of the bidding documents: >>>More