I. Introduction to decompression commands
Tar command
-C: Create a compressed file
-X: Extract
-T: View content
-R: append an object to the end of the compressed archive object
-U: update files in the original compressed package
These five are independent commands, one of which must be used for compression and decompression. They can be used with other commands,
Common commands in the vi editor and Common commands in the vi Editor
After so many years of work, the vi editor can use only a few commands at most.
1. yy: copy the row where the current cursor is located2. nyy: n is a number. Copy the N rows after the current cursor starts.3. p: paste the copied content to the row where the cursor is located.4. dd: Delete the
Common Linux commands () and common linux commands
In Linux, The grep command is a powerful text search tool that uses regular expressions to search for text and print Matching lines. Grep stands for Global Regular Expression Print, which indicates the Global Regular Expression version. Its permission is granted to all users.
Grep works like this. it searches for string templates in one or more files. If t
Common commands and statements for Shell programming (SCRIPT) and Common commands for shellSome common Shell programming (SCRIPT) commands and statements can meet general requirements.Command Parameters received:
Number of parameters:
$ #
Parameter value:
Command itself: $0 first parameter: $1 second parameter: $2 ......
Exit command:Exit
Echo command:
L
Common mysql commands and basic mysql commands
Mysql database usage Summary
This article mainly records some mysql commands for future query.
1. Change the root password
Mysqladmin-uroot password 'yourpassword'
2. remotely log on to the mysql server
Mysql-uroot-p-hip-P3306
3. query the database
Show databases;
4. Enter a database
Use databasename;
5. List tables
Crontab for linux commands and crontab for linux commandsCron is a built-in service in Linux. Run the following commands to start, view, and disable the service.
Service cron start // start service cron stop // close service cron restart // restart service cron reload // reload and configure service cron status // view service status
The cron global configuration file is in the/etc directory:
Cron. d/The sy
Detailed explanation of common nohup commands and detailed explanation of nohup commands
Nohup command
Purpose: run the command without hanging up.
Syntax: nohup Command [Arg... ] []
Description: The nohup Command runs the Command specified by the Command parameter and any relevant Arg parameter, ignoring all SIGHUP signals. After logging out, run the nohup command to run the program in the background. To r
Locate find files based on file name search based on database records, the day createdWhereis which search command commands such as Whereis lsFind/root-name "A.conf"Path optional parameter file nameParameters:-name based on file name-size according to file size K M (unit case-sensitive)-inum based on Node-mtime modification TimeUsage of-exec:Find/root-size +20k-a-size-50-exec ls-lh {} \; Find files larger than 20k below 50k in the/root directory and l
different from the query commands described in 1 and 8. this method is only applicable to installed software packages! Command format:
Rpm-parameters
;
APT-GET
Apt-get update -- run this command after modifying/etc/apt/sources. list or/etc/apt/preferences. In addition, you need to regularly run this command to ensure that your package list is up-to-date.
Apt-get install packagename -- install a new software package (see aptitude below)
Ap
1. man [manual]: usrbinman gets help documents from commands or configuration files, view the help man [command or configuration file] of the command first. the moreegmanls command is called to view the help information of the ls command. manservices: view the help information of the configuration file services.
1. man [manual]:/usr/bin/man
Obtain the command orConfiguration fileTo view the help documentation of the command first.
Man [command or conf
Common mysql commands and basic mysql commands
I installed MySQL5.5.27 today to view some common commands.
1. log on to MySqlIn the cmd window, enter the bin directory installed by MySql,Command:Bin> mysql-u root-p[Database name] Press enter and enter the password
2. view the version number:Mysql> select version ();
3. view the current server Date:Mysql> sele
Summary of common mysql commands and summary of common mysql commands
Set and change the password of mysqlroot
The first time you enter the mysql database,
!
You can add the absolute mysql path to the environment variable,
You can also set boot loading,
Reload environment variables to make mysql take effect
Log on to mysql-uroot again.
Add a password to mysql
Log On again for verification,
Change Passw
Common git operation commands and git operation commands
Record the common Git command operations in the work. A project is often developed by multiple people in collaboration. Using git is a required skill for developers. Below are some basic git operations recorded, in the future, we will record git conflicts, merge branches, roll back, and tag operations.Clone project-git clone:
git clone https://test.gi
Call system commands and call commands1. Simple call of 1.1 OS. system
import osos.system('dir')The screen display generated by dir will appear directly on the current screen. The returned value is related to the execution environment. If the Windows cmd.exe environment is used, the return value is the status code. 0 indicates success, and 1 indicates failure. For example, if you accidentally make a mistake and write dir as ddir, the return code is 1
Reprint: http://blog.csdn.net/b_h_l/article/details/12654749The first type: Using Os.system ()Import OSOs.system ('cat/etc/profile')The second type: Using Os.popen ()= Os.popen ('cat/proc/cpuinfo') print output.read ()The object that is returned by Os.popen () is a file read that reads the read () operation to see the output that is executedThe third type: using commandsImport Commands (status,output)=commands.getstatusoutput ('Cat/etc/profile') Print
Common Database restoration commands and restoration commands
1. display the current directoryPwd
2. remote replicationScp ics20140902_0200.DMP oracle@10.10.16.40:./hpdata
3. Restart the databaseLsnrctl stop; -- the listening service is stopped.Shutdown immediate;Startup;
4. Go to OracleSqlplus "/as sysdba"
5. delete usersSQL> drop user hlj cascade;
6. User CreationSQL> create user hlj identified by hlj def
Five search commands in linux and five search commands in linux1 which
The which command searches for the location of a system command in the PATH specified by the PATH variable and returns the first search result.
Which [file...] Parameters: -N -P -W specifies the width of the field when the output is made. -V: display version information
Strange: why can't we find the cd
Git configuration and Common commands, git configuration Common commands
1. Configuration
1) download the git software online. I'm git-1.9.5-preview20150319.exe and TortoiseGit-1.8.14.0-64bit.msi.
After installation, click git bash from the Start Menu
2) Input
Ssh-keygen-C "shixin@yiche.com"-t rsa
To generate a pair of keys, which are saved to ~ by default ~ /. Ssh directory.
3) Input git config --
your own user directory:On the target machine: CP tmpdir.sql.gz/home/makaidong/Then on this machine:scp-r [email protected]:/home/makaidong/\*.sql.gz.Note: \* escapeNohupNohup Hive--service hiveserver 2>1 Dos2unix windows-linux Shell Format conversionFind. -name "*.conf" | Xargs Dos2unixVar.sh wrote: year=2015Shell import Source introduces other shells#!/bin/bash#在其他目录: source./sh/var.sh #sh目录下 or source sh/var.shSOURCE var.shRm-rf./data.txtTouch Data.txtFor ((i=0;iDoStr= ', name ';Name=${i}${s
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.