created mkdir-p shandong/heze/danxian/yanglouzhen/liuzhaicun/t/t for recursion13. Tree Shandong View trees structure, directory organization14, man view the command's document command--help simple view Help15. Help command to view Linux built-in commands16. grep Find Code17, Tar zcvf demo.tar.gz Linux.log demo own definition name, tar.gz usual habit Linux.log will pack into demo.tar.gz18, sz demo.tar.gz download package19. Df-h Disk Utilization20, Du-sh the current directory size21, Free-m serv
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 command running under/root/test will only be u
: LastFunction Description: Lists the current and past logged in system User Information example: lastCommand name: LastlogCommand path:/usr/bin/lastlogExecute Permissions: All UsersSyntax: LastlogFunction Description: Check the last login time for a specific user example: Lastlog lastlog-u 502 (502 for user ID)Command name: tracerouteCommand path:/bin/tracerouteExecute Permissions: All UsersSyntax: tracerouteFunction Description: Displays the path between the packets to the host traceroute www.
[user] [file or directory]Function Description: Change the owner of the file or directory (only root has this permission)Command name: CHGRPCommand English Original: Change file group ownershipCommand path:/BIN/CHGRPExecute Permissions: All UsersSyntax: chgrp [user Group] [file or directory]Function Description: Change the file or directory belongs to group example: Chgrp liming FengjieCommand name: umaskCommand English original: the User file-creation maskCommand path: Shell built-in commandEx
Linux Common Command Encyclopedia 100:
1, echo "AA" "Test.txt and Echo" BB "" test.txt//"empty the original file, and the content written to the file," "Put the content to the end of the file
2. chmod go+w-r/home/zhangy//To add Write permissions to group users and other users
3, TAR-TZVF test.tar.gz//List of archived content
4, Du-ah//view file list size
5, Du-sh//View the total size of all files
6, Echo ' 1+2 ' |bc-l//mathematical operation
7, uname-a//View some information of Linux ke
Netstat same usageNetstat-an |awk '/^tcp/{++sta[$NF]} END {for (key in STA) print key, "\ T", Sta[key]} ' can view all states(if the established is large, the system is busy, usually within 1000)Five, Linux under Grab Bag (tcpdump)Tcpdump-nn the first n means that the IP is displayed in digital form, if the hostname is not displayed,Look at the flow of data.Usually TCP, if you see a packet of UDP can be attacked. (DDOS UDP flood flood attack, if you encounter this can only access professional a
the default permissions that correspond to the defaults.[[email protected] ~]# umask-su=rwx,g=rx,o=rx[[email protected] ~]# mkdir/tmp/test[[email protected] ~]# ls-ld/tmp/tes Tdrwxr-xr-x. 2 root root 4096 January 8 00:32/tmp/test[[email protected] ~]#When creating a new file, the default is no execute permission for security purposes. For example, create a new Test1.txt file under the TMP directory with the following default permissions:[Email protected] ~]# touch/tmp/test1.txt[[email protect
的密码是否被锁定,以及密码所使用的加密算法名称passwd Use Example:# 修改用户 user2 的密码[[emailprotected] disk2]# passwd Five, switch user suThe SU command is used to switch between different users. Super User root switch to other users do not need to enter a password, while switching between ordinary users or switch to the superuser is required to verify the password. The SU command switches to the root user by default when no parameters are added.Common parameters of the SU command:-l 登录并改变到所切换的用户环境-c 执行一个命令,然后退出所切换到的用户环境
46.1 Mkfontdir: Creating an index of X font files
46.2 Dumpiso: Dumps the IEEE 1394 synchronous channel packets
46.3 iconv: Convert file Encoding
46.4 Hash: Display and delete hash tables
46.5 Isb_release: Displays information about LSB and specific versions
46.6 locale: Get a specific language environment
46.7 nm: List Symbols from objects
46.8 RMT: Remote disk Creation Protocol module
46.9 Lscgroup: List all the cgroups
46.10 cgclear: Uninstalling the Cgroup file sys
Tags: dir directory esc body ACK BSP Primary directory page common commandsBecause very little command line, old despised, so today record a common command line:CD Switch working directory. Represents the current directory.. Represents the top-level directory of the current directory/root directory/directory separator./Current Directory.. /go to the top level directoryLS Displays the current directory so the filemkdir Creating a new directoryRmDir Delete Empty directory, note is empty directoryV
. After reading all the content, you will exit. If you want to quit early, just press the Q key. Less is the same as more, but better than the more good can be turned upside down. The SPACEBAR can also be paged, while pressing the "J" key can be moved downward (click to move down one line) and press "K" key to move up. When you use more and less to view a file, you can click the "/" key and then enter a word carriage return so that you can find the word. If you have more than one word, you can p
Common Linux commands
Common command formats in Linux:
command [option] [argument1] [argument2] ...Where option starts with "-", multiple options can be connected with one "-", for example, "ls-l-A" and "ls-La" have the same effect. Parameters are optional or required according to different commands. All commands accept input from
In the previous sections, we have divided Linux commands into several parts based on their functions in the system. However, there are still some commands that are difficult to classify, but learning them is the same
In the previous sections, we have divided Linux commands into several parts based on their functions in the system. However, there are still some
In-depth introduction to the use of custom commands in AngularJS and the use of custom commands in angularjs
AngularJS custom commands are your own commands, plus native core functions that are run when the compiler compiles the DOM. This may be hard to understand. Now, suppose we want to reuse some specific code on di
= 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
functions:Specific characters used for filtering/searching. Regular expressions can be used in combination with multiple commands.
3. command parameters:-A -- text # Do not ignore binary data.-
-- After-context =
# In addition to displaying the column that conforms to the template style, the content after the row is displayed.
-B -- byte-offset # indicates the number of the first character of the line before the line that conforms to t
position you selected, both soft links and hard links are synchronized.Ln commands are used to link files or directories. for example, if you specify more than two files or directories at the same time, and the final destination is an existing directory, all the previously specified files or directories will be copied to this directory. If multiple files or directories are specified at the same time and the destination is not an existing Directory, a
Ipcclean removes internal and isolated signal sharing signs from the stopped PostgreSQL Server
Pg_ctl start, stop, and restart the postgresql service (for example, pg_ctl start starts the postgresql service, which is the same as service PostgreSQL start)
Pg_controldata displays the internal control information of the postgresql service
Postgres PostgreSQL single-user database service
Postmaster PostgreSQL multi-user database service
4. Psql is the most important client program. To e
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.