Common Git commands and common Git commands
Mkdir:XX (create an empty directory XX refers to the directory name)
Pwd:Shows the path of the current directory.
Git initChange the current directory to a manageable git repository and generate a hidden. git file.
Git add XXAdd xx files to the temporary storage area.
Git commit-m "XX"Comments are followed by the submitted file-m.
Git statusView repository status
Summary of Common commands for android development and common commands for android Development
1. compile the project
Enter the project directory, for short,
2. Installation Project
Ant debug install, which version should be determined during installation. Note: Go to the project directory and execute this statement.
3. Start the android Simulator
Emulator-avd av, av is the name of the simulator
4. list
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 needed when debugging or when system tuning
[Django] user permission operation commands (1), django operation commands
To create a py file for testing, add the following code to the file.
# Coding: UTF-8 import OS. environ. setdefault ("DJANGO_SETTINGS_MODULE", "www. settings ") ''' when the Django version is greater than or equal to 1.7, add the following two statements: import djangodjango. setup () otherwise, the error django will be thrown. core.
Summary of Common commands for GDB debugging in Linux, and Common commands for gdb
Prepared by: longshike
Email: longshike2010@163.com
2016-01-05
Gdb is the default debugging tool in Linux. When compiling a program file, such as debug. c. To use gdb for debugging, you must add cc-g or gcc-g before the terminal command to compile debug. c can be obtained using the following command:
gcc -g -o debug debug.c
E
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 version detection at the same time.-V: Output S
Summary of Common commands in Linux (7) Security Settings and Common commands in linux
Security Settings
Category
Command
Option
Annotation
Security PolicySelinux
Setenforce
Number (0, 1)
Set selinux status, 0 closed, 1 Enabled
Getenforce
Displays the current selinux status. enforcing indicates enabled, and permissive indicates
Use of cp, rm, and mv commands and cp commands in Linux Command lines
The following content comes from laruence's private kitchenCopy, delete, and move Linux Command lines: cp, rm, and mvCp (copy) replicationThe cp command is used for many purposes. In addition to simple copying, you can also create a link file to compare the old and new files and update them,And copy the entire directory.SyntaxCp [-adfilpr
Common commands in Linux System (4) program and resource management, Common commands in linux
Program and Resource Management
Category
Command
Option
Annotation
Background Management
Command +
Move the task to the background
Ctrl + z
Pause a task
Fg
[% Number]
When the background program is pushed to the foreg
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 configuration file services. After the help infor
Vim commands and vim commands
1. About Vim
Vim is my favorite editor and the second most powerful editor in Linux. Although emacs is recognized as the world's No. 1, I think it is more efficient to use emacs without using vi for editing. If you are a beginner, running vimtutor is a smart decision. (If your system environment is not Chinese and you want to use a Chinese vimtutor, run vimtutor zh)
1.1 several
Linux basic commands and linux commandsLs command
Pwd: display the current directory touch 11.txt: Create a txt file named 11 mkdir laowang under the current directory: Create a folder named laowang ls-a-l-h in the current directory: it is equivalent to ls-alh.-a is used to display all files in the current directory, including hidden files.-l is displayed as a list, -h is the size of the displayed file automatically converted to the default format, su
Common commands for file search in Linux and Common commands for linux
File SEARCH Command: find
1. Search by file name
1.1. Search for precise files
Find path-name file name
1.2. Search for a file whose file name contains a string.
Find path-name * file name *
1.3. Search for files prefixed with a string.
Find path-name file name *
1.4. Search for files suffixed with a string.
Find path-name * file name
1.
Linux Network-related commands and linux Network-related commands
Ifconfig
Ifconfig is the command to view the NIC in centos6. In centos7, you must install the net-tools package before using it?Nic configuration file:/etc/sysconfig/network-scripts/ifcfg-ens33?Command: ifconfig
[root@shuai-01 ~]# ifconfigens33: flags=4163
mtu 1500 inet 192.168.176.135 netmask 255.255.255.0 broadcast 192.168.1
File search commands and search commands
1. Copy the/etc/skel directory to/home/tuser1. The owner group of/home/tuser1 and its internal files and other users do not have any access permissions.
1 [root@bogon home]# cp -r /etc/skel /home/tuser1 2 [root@bogon home]# chmod -R go= /home/tuser1 3 [root@bogon home]# ll -d tuser1 4 drwx------. 3 root root 74 Mar 20 00:03 tuser1 5 [root@bogon home]# ll -A tuser1 6
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. After the system is initially installed, the system is more secure, the path of some
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
(source) target (destination)[email protected] ~]# CP [options] Source1 source2 source3 .... directory
Parameters used with the CP:
-A: As-pdr means, please refer to the following instructions for PDR. (common)-D: If the source file is the attribute of the link file, the link file property is copied instead of the file itself;-I: If the target file (destination) already exists, the action will be asked (commonly used) when overwriting-P: Copy the past along with the properties of
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.