Common linux commands and linux commands
1. Network Parameter Setting command
1. ifconfig: Query and SET network card and IP network segment parameters
1.1 man manual Definition
DESCRIPTION Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only
Common nmap commands and nmap commands
1) obtain the system type and open port of the remote host
nmap -sS -P0 -sV -O
-SS tcp syn scan (also known as semi-open or stealth scan)-P0 allows you to Disable ICMP pings.-SV: Enable System Version Detection-O attempts to identify remote operating systems
Other options:
-A: Enable the operating system fingerprint and ve
Common Linux commands (4) -- Help Command 1. Command name: man www.2cto.com execution permission: All Users Function Description: Get help Syntax: man [command or configuration file] views the help information of the ls command. When the help information is displayed, press the space to next page, press Enter next line, and press q to exit [root @ localhost ~] # Man ls: view the help information of the conf
the syntax in the following format:Traceroute website(9) NetstatThe netstat command is used to display network-related information , where the path is/bin/netstat, with the syntax in the following format:netstat [options]where the-t option represents the TCP protocol, the-U option represents the UDP protocol,-L for listening,-R for routing, and-n for displaying the IP address and port number .such as: view the local listening port-----netstat-tlunView all network connections on this computer---
Network command: Ping (Test network connectivity)Network command: Ifconfig (view and set network card information)Note: When viewing the NIC information, enter the Ifconfig command directly.Network command: Last (lists user information for current and past logged-in systems)Network command: traceroute (shows the path and information of the packet to the target host)Network command: Netstat (display network-related information)Network command: Setup (configure the Network for permanent entry)Note
chmodSyntax: chmod [{ugoa}{+-=}{rwx}] [file or directory] For example chmod g+w testfile[mode=421] [File or directory]-R recursive modifications such as Chmod-r 777 TestDirModify directory testfile directory files for all users with full permissionsSummary of File directory permissionsRepresents the meaning of the character permission on the file to the directoryR Read permission to view the contents of a file to list content in a directoryW Write permission can modify the contents of the file c
Recommend a Windows software: Everything, can quickly search to file1. File Search command: FindDo not use the Find,find range as small as possible during peak server usagefind [Range] [match condition]Example:Find/etc-name init: Find file init in directory/etc, precision search, to blur search with * matchFind/-size +204800: Look for files larger than 100M in the root directoryFind/home-user Shenchao: Find files with owner Shenchao under the root directoryFind/etc-cmin-5: Find files and directo
, for renaming8. Delete Files: RMRM-RF [File or directory]:-R Remove Directory-F EnforcementDelete the directory with-RF, or you will be constantly prompted to delete every file in the directory9. Create an empty file: TouchTouch japanlove.list10. Display file contents: Cat [FileName]-N: Show line numbers11. Display file contents: TAC [FileName]12. Paging Displays the contents of the file: more [filename](space) or F: Page turn(Enter): line breakQ or Q: Exit13. Paging Displays the contents of th
, RM; Execute permissions x: CD2. Change the file owner: ChownCommand name: Chown Command English Original: Change file ownership command path:/bin/chown Execute permissions: All user syntax: chown [user] [file or directory] function description: Changes the owner of the files or directories3. Change the owning group of the file or directory: ChgrpCommand name: CHGRP Command English Original: Change file group Ownership command path:/BIN/CHGRP Execute permissions: All user syntax: chgrp [user] [
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
: 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
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
Linux system management commands
WallCommand
The function of this command is to send information to all logged-on users. You can first write the information to be sent to a file, and then enter:
# Wall
In this way, information can be sent to all users.
In the preceding example, the symbol "
# Wall' thank you! '
Broadcast message from root (tty1) Fri Nov 26 14:15:07 1999...
Thank you!
#
After executing the preceding command, the user's screen display
Common Oracle commands for creating users, tablespaces, and role commandsThe following articles mainly introduce how to view the table structure in common Oracle commands. If you are interested in the actual operating solution of how to view the table structure in common Ora
Common Linux commands (version 2)-file management commandsFile Management commands
Not recommended: Follow books like command book!
There are about 200 Common commands.
File naming rules:
A) All characters except '/' are valid!
B) It is best not to use these characters.
1. s
: HeadCommand name: HeadCommand location:/usr/bin/headExecute Permissions: All UsersFunction Description: Displays the first few lines of the file-n Specifies the number of rowsSyntax: head [filename]Example: $ head-n 20/etc/services-----------------------------------------------------------------------------------File Processing command: TailCommand name: TailCommand location:/usr/bin/tailExecute Permissions: All UsersFunction Description: Displays the following lines of the file-n Specifies th
The command format for Linux is generally: command [-options] [parameters], such as LS-LA/ETC, you need to note the following: 1) Individual commands are not used in this format, 2) when there are multiple options, can be written together; 3) there is a simplified option (-) and a full option, such as-a equals-all.(1) LSThe function of the LS command is to display the directory file, the original is a list, where the path is/bin/ls, all users can exec
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.