File management commands for Linux commands CP, MV, RMCP, copy command: Copying files or directoriesGrammar:CP [OPTION] ... [-T] SOURCE DESTCP [OPTION] ... SOURCE ... DIRECTORYCP [OPTION] ...-t DIRECTORY SOURCE ... CP SRC DEST:SRC is a file: If Dest does not exist: Creates a new target file and copies the SRC to the target file; if dest exists: If Dest is a file:
want to transfer the local 1.bmp to the remote host E:\rose, and renamed to 333.bmpFtp> put 1.bmp/rose/333.bmp (carriage return)b) mputFormat: Mput local-filesTransfers a batch of files from the local host to the remote host.If you want to upload all BMP files in the local current directory to the server E:\roseFtp> cd/rose (carriage return)Ftp> mput *.bmp (return)Note: The upload file is from the current directory of the host. For example, the FTP c
Why can't I use the ifconfig command in RedHat Linux 5? After I have installed RedHat Linux 5, I use some commands on the terminal, for example, ifcinfig, to view the IP address of the local machine, the system prompts "command not found". What should I do? If the environment variable is not loaded, modify the environment variable as follows: www.2cto.com 1. Afte
shorthand for the ls-l command (Ls-l is ll alias relationship)(6) Cut or rename command: MV (move)MV [source file or directory] [target directory] This is not used with-RThe role of a common directory: (the role of a common directory)/root directory to explain and familiarize yourself with the role of first-level catalogsBoth the bin and the Sbin,usr directory in the root directory are the bin and sbin four directories that are used to hold system commands
Linux commands for managing files and directories
Command
Function
Command
Function
Pwd
Show current directory
Ls
View the contents of the directory
Cd
Change your directory
Cat
Display the contents of a file
Grep
Find a character in a file
Cp
Copying files
Touch
Create a fi
Common Linux commands (2) -- permission management command 1. command name: chmodwww.2cto.com execution permission: all users function description: change the file or directory permission syntax: chmod [{ugo} {+-} {rwx}] [file or directory] [mod... common Linux commands (2)
/wKioL1ngdcbD03vBAAEB-2zmOQ4645.png "style=" float : none; "title=" Linux relative path and absolute path, CD command, create and delete directory, rm command 858.png "alt=" Wkiol1ngdcbd03vbaaeb-2zmoq4645.png "/>The!tree command can run the last hit of the tree at the beginning of the command:650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/08/61/wKiom1ngeIDygNeYAAdaqhJPvhA132.png "style=" float : none; "title="
= 255.255.255.0GETEWAY = 192.168.1.1ONBOOT = yesTYPE = EthernetNote: BOOTPROTO can only use the configured IP address in static mode.Modify dnsVim/etc/resolv. confThe modification takes effect immediately and starts as well.
FormAdd nameserver = ***.***.***.***Up to three candidates can be selected as candidates after the previous failure.
Modify host nameEffective immediately:Hostname fc2Start effective:Vim/etc/sysconfig/networkThe format is as follows:NETWORKING = yesHOSTNAME = rh-linux.fc.or
files.J: Use the BZIP2 compression algorithm to compress the packaged file.3. Create, view, and extract archive files using the tar command (see Linux System Management P210)1) An example of using the TAR command to create an archive file:Example: Use the TAR command to package the Arch directory as an archive file named Arch.tar (requires that all packaged files and directories be displayed):Tar cvf Arch.
;/tmp/mypasswd // open for N in 2 4 6 10 13 15; do line = 'head-$ N $ file | tail-1 'echo $ line> 1 doneexec 3> -// close unset file line
------------------------------------------------------------------------
Pipeline |: sends the output of the first command to the second command for processing.Echo "123456" | passwd -- stdin rehat // This command will give 123456 to passwd for processing, the -- stdin parameter will make 123456 immediately effective as the user's RedHat PasswordLs/etc | tee/
Commands to implement TelnetSSH, Telnet, rlogin(1) SSHThe SSH command is the Client Connection tool in the OpenSSH suite, which enables secure Telnet server to SSH encryption protocol. The SSH command is used to telnet to the Linux host.Common format:ssh [-l login_name] [-P port] [[Email Protected]]hostnameMore details can be viewed with ssh-h.Grammar:SSH (options) (parameters)Options:-1: Enforce SSH protoc
X extra functionality (experts only) # Create a new partition Command (M for help): N Partition Type:p Primary (0 primary, 0 extended, 4 free) e Extended # p means the primary partition is created and E represents the extended partition select (Default p): Ppart Ition number (1-4, default 1): 1 # select 1 or Use default first sector (2048-2097151, default 2048): # Start section using default Value 2048# +400m represents allocating 400M space to a partition, the default allocation of
Common Linux commands (5) -- compression and decompression commands 1. command name: gzipwww.2cto.com execution permission: all users function description: compressed file syntax: gzip option [file] compressed format :. gzgzip can only compress files, but cannot compress directories ;...
Common
FTP command: Server has FTP server installed, another Linux can use the FTP client program to copy the file read and download. 1. Connect to the FTP serverFormat: FTP [hostname| ip-address]A) under Linux command line input: FTP 192.168.26.66b) The server asks your user name and password, enter the user name and the corresponding password, respectively, to be certified. 2. Download the file The download file
Common Linux commands (2): ipcs/ipcrm commands, ipcsipcrmIpcs
1. Command Format
Ipcs [resource-option] [output-format]Ipcs [resource-option]-I id
2. command functions
Provide information about the IPC Device
3. Usage
Resource options:
Ipcs-m view system shared memory information
Ipcs-q: view system message queue Information
Ipcs-s: view system semaphore Informati
Linux commands have internal commands and external commands, and internal commands are basically the same as external commands, but with subtle differences Internal Command : part of the shell programTypically, the shell is loade
simply enters the command man and the name of the command shell will list a complete description.Standard usage:Name of the man commandTo query the description page of the LS command, enter the command: Man lsTo flip through the manual page, you can use the page UP and PAGE DOWN keys, or use the spacebar to turn back one page and use B to flip forward. To exit the manual page, enter the command Q. To search for keywords in the manuals page, enter a command/and keyword or phrase to search for, a
1.which commandWhen entering a Linux command, the shell actually executes the same name command in which directory, we are not known, can be verified using which.2.whereis commandA command similar to which, Whereis is used to retrieve the file associated with a given command.3.apropos commandUse the apropos command to retrieve commands using the keyword. Apropos will use the keyword provided to retrieve the
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.