It took me two days to sort it out, and some of the most common commands that people on Earth know would be skipped! Finally, download the pdf manual. command to change the archive owner: chown [-cfhvR] [-- help] [-- version] user [: group] file... function: change the file...
It took me two days to sort it out, and some of the most common commands that people on Earth know would be skipped! Finally, downlo
Command Xiaoming refers to zookeeperPasswd Change User PasswordPwd print Current DirectoryCd change DirectoryLs to list files in the directoryWildcards wildcard * matches any number of charactersWildcard? Match a single characterType of the file to be printedCat display file contentPr display file contentPg page displays the file content on one page at a timeMore display file content on one page at a timeClear Screen ContentCp copyChown Modify file ownerGroup where the chgrp file is modifiedChmo
Od
The OD (octal dump) filter will convert the input (or file) to octal or other hexadecimal. You need to view
This command is useful when processing binary data files or an unreadable system device file,
For example,/dev/urandom, or a binary data filter.
DdThis is also a well-known tool, but it is a frightening "Data Replication" command.It is used to exchange data between a Unix microcomputer and an IBM mainframe through tape. This command still ha
The vi editor has three modes: Command mode, input mode, and last line mode. It is very important to master these three modes:
Command mode: After vi is started, the command mode is entered by default. From this mode, you can use the command to switch to the other two modes.
In any mode, you only need to press the [Esc] key to return to the command mode. Enter the subtitle "I" in command mode to enter the vi input mode.
Files.
Input mode: In this mode, you can edit, modify, input, and so on. In
First, matters needing attention
The command and argument must be separated by a space, and the arguments and arguments must be separated by a space.
A line cannot be more than 256 characters, and case sensitivity.
Second, the meaning of special characters
File name with "." Start with hidden files/directories, just add "." in front of the file/directory name. You can hide it.
~/represents the home directory.
./current directory (one point).
.. /Top level directory (two points).
; Multip
It took me two days to sort it out, and some of the most common commands that people on earth know would be skipped! Finally, download the pdf manual. command to change the archive owner: chown [-cfhvR] [-- help] [-- version] user [: group] file... function: Change the file or folder owner parameter format: user of the new file owner IDgroup: user group of the new file owner-c: if the archive owner has changed, the change action is displayed.-f: If th
Environment ubuntu14.04 (this Unix-like system is used to replace UNIX, and The sudo command is also a command in Linux)Example: Install the Ubuntu Firefox flash plug-inDecompress the tar.gz package to adobe.Tar-zxvf plug-in .tar.gzSudo CP libflashplayer. So/usr/lib/Firefox-Addons/pluginsSudo CP-r usr/*/usr (copy the content in the USR subdirectory of the plug-in package to the USR directory under the syste
Make is a very important compilation command, both in Linux and in UNIX environments. Whether you are developing your own projects or installing applications, we often use make or make install. With make tools, we can break down large development projects into more manageable modules, and for an application that includes hundreds of source files, using make and makefile tools, you can succinctly and concisely streamline the complex interrelationships
Activate the lock: vgchange-A y/dev/vglock
Activate the lock Disk: vgchange-a n/dev/vglock
Compile and generate a binary configuration file: # cmapplyconf-v-C/etc/cmcluster. ASC configure the dual-host software package to modify the following main files: scupkg. ASC control. Sh spy. Sh
Synchronize the PKG configuration file on both nodes
Compile and generate PKG: cmapplyconf-v-P/etc/cmcluster/scupkg. ASC to start the dual-host system: perform the following operations on scu_a as the root user: S
Common commands for packaging, compression, and decompression in Linux:
. Tar
Unpack: tar xvf FileName.tar
Package: tar cvf FileName.tar DirName
Note: tar is packed, not compressed
---------------
. Gz
Decompress 1: gunzip FileName.gz
Decompress 2: gzip-d FileName.gz
Compression: gzip FileName
---------------
.Tar.gz and. tgz
Decompress: tar zxvf FileName.tar.gz
Compression: tar zcvf FileName.tar.gz DirName
---------------
. Bz2
Decompress 1: bzip2-d
Common commands used by Linux in normal work:
SCP is a file copy with security, SSH-based login. Easy to operate, for example, to copy the current file to a remote other host, you can command the following. Scp/home/1.gif [email protected]:/home/rootYou will then be prompted to enter the login password for the root user of the other 172.19.2.75 host, and then the CP and Ungzip are started.If you want to reverse the operation, copy the file from
1. Query IP address ifconfig2. Find port assignments for applications on the servergrep telnet/etc/services (telnet)Telnet using the TCP/UDP port number 23grep domain/etc/services (domain),
Telnet
Ftp
Tftp
http
Https
Snmp
Domain
Echo
Discard
Daytime
Chargen
Time
23
20
69
80
443
161
53
7
9
13
19
37
3.ping [IP Address], test the network for connect
Linux Command:Alias
Function Description:Set the alias of the command.
Syntax:Alias [alias] = [command name]
Note:You can use alias to customize the alias of the command. If you only enter alias, all current alias settings can be listed.Alias is valid only for this login operation. To automatically set an alias for each login, you canOr set the alias of the command in. cshrc.
Parameters:If no parameter is added, all current alias settings are listed.Example: Set the alias LL = 'LS-l'Set the
The DF command is a commonly used command for viewing hard disk information. The main parameters are as follows:
DF-A: displays the disk usage of all file systems, including 0 block file systems.DF-I: displays the I node information, not the disk block.DF-T: displays the disk space usage of each specified type of file system.DF-X: List disk space usage of a file system of a specified type.DF-T: displays the file system type.DF in 512 bytes DF-K: in 1024 bytesDF-M: In megabytes
Note 1: Is t
Common commands for packaging, compression, and decompression in Linux :. tar unpack: tarxvfFileName.tar package: tarcvfFileName.tar DirName note: tar is packed, not compressed mdash; mdash; mdas
Common commands for packaging, compression, and decompression in Linux:
. Tar
Unpack: tar xvf FileName.tar
Package: tar cvf FileName.tar DirName
Note: tar is packed, not compressed
---------------
. Gz
Decompre
Umask command
Umask sets the default blocking value for User Files And Directories. If you place this command into the profile file, you can control the access permission for subsequent files created by the user. The umask command is the opposite of the chmod command, which tells the system not to grant certain access permissions when creating files.
Cp, mv, and cpio commands
When the cp command is used to copy a file, if the target file does not e
The umask command umask sets the default blocking value for user files and directories. if you place this command into the profile file, you can control the access permission for subsequent files created by the user. The umask command is the opposite of the chmod command, which tells the system not to grant certain access permissions when creating files. Cp, mv, and cpio command cp command Copy text
Umask command
Umask sets the default blocking value for user files and directories. if you place
1. Man-an interface to the on-line reference manuals$manMans2. apt-advanced Package ToolSee Also:apt-cache, Apt-get, apt.conf, sources.list$APT-cache search MySQL3.sudo-execute a command as another user (sudo allows a permitted user to execute a command as the Superuser or another User, as specified by the security policy.)$sudoinstall python2. 74.su-change user ID or become superusercc@debian: ~$supassword:[email protected]:/home/cc#succ cc@debian: ~$5. Ls-list Directory Contents$ls -l$ls -la6.
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.