Basic Linux commands and Linux commands
Cd-> transform path // file usually exists under/var/path, var can be modified storage disk
Ls-> list all properties of hidden and Related Files # ls-al
# Ls-al
-Rwxrwxrwx 1 root 293 2016-02-23 test
File property connection count file owner file user group size time file name
-Rwxrwxrwx 1 root 293 2016-02-23 test
Date-> cu
Basic PostgreSQL commands and PostgreSQL commands
1. Change the table name
Alter table name rename to new table name
2. Change the field name
Alter table name rename field name to new field name
3. Change the field type.
For example, the original type of the ID field is character varying (50) and the new type is integer.
Where, the ID contains numbers such as 1,
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
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 ();
(mm/dd/yy format)
%T
Display time format, 24-hour (HH:MM:SS)
%x
Format of the display date (MM/DD/YY)
%y
The last two digits of the year
%Y
Years (e.g. 2007, 2008)
%r
Time (Hh:mm:ss morning or afternoon)
%p
Show morning or afternoon
If you enter a command:Date "+%x,%r"The system returns the following information:March 26, 2010, 18:06 P.M. 49 seconds4.7 cal CommandThe CAL co
file after a few lines-N: Specify the number of rows-F: Dynamically displays the end-of-file class capacityLN: Generating a linked file-S Create soft connectionExample: Ln-s source file Destination file generation soft connection (shortcut)ln source file destination file generated hard link (source file destination file sync update, copy, source file missing hard link still in, cannot cross partition)by Ls-i to see if it is a hard link, I-node numbers are the sameThis article is from the "Tommy
Summary of basic linux vi commands and summary of linuxvi commands
This is to prevent you from forgetting and writing it, so it is not detailed.
Yum install (command) Installation command
Nano file editing
Vi
Delete file: rm
-I confirm before deletion
-F not confirmed before deletion
-R recursive Deletion
Rm-rf/file name
Cp: copy
Cp src dest
-R
-Confirm before I
Basic Linux commands and Linux commands
[Epeter @ localhost ~] $
Where: epeter is the user name; localhost is the current host name ;~ The broken wave number indicates that the current user directory is used (If yes, the slash indicates that the current root directory is used ); $ indicates that you are currently logged on as a normal user (If yes, # indicates th
Linux Security Basics: network configuration commands and linux basic configuration commands
1. ifconfig view and configure network interface information(1) set an IP addressIfconfig eth0 192.168.0.1(2) temporarily disable or enable the NICIfconfig eth0 downIfconfig eth0 up(3) set the subnet maskIfconfig eth0 netmask 255.255.255.0(4) view the status of the first
Django basic commands, Django commands
1. Create a project
Django-admin.py startproject myblog
2. Create an app
Python manage. py startapp blog
3. Create a database table or change a database table or field
Python manage. py makemigrations blog
Python manage. py migrate
4. Run the Development Server
Python manage. py runserver
5. Clear the database
Pyt
A few days ago learned the basic Linux commands, here to share, as a summary.Environment: 192.168.54.242Cd:CD-Switch to the first use path;Cd.. Go to Parent PathCD ~ Enter into the root/directoryCD Ibid.Cd.. /Relative DirectoryMkdir:mkdir a Create directory AMkdir-p a/b/c Creating a tree DirectoryMKDIR-M 777 A Create directory A and give maximum permissionsMkdir-m a=rwx a ibid.(About permissions: Rwx refers
Hello everyone, this time we will introduce some network configurations under liunx, simple basic optimization of shell, and level adjustment first. There are also some commands for you to take a look.
Statement: I like to share with others. I am happy, that is, to make everyone happy. Some of my posts are my previous study notes, and some of my questions can be easily recorded, I also wrote it when I sudde
Basic Linux commands: sar and basic linux sarCommon sar command formats
Sar [options] [-A] [-o file] t [n]
Where:
T indicates the sampling interval, and n indicates the number of samples. The default value is 1;
-O file: stores the command results in binary format. file is the file name.
Options is the command line option. Common options for sar
Linux basic commands and linux basic notes
Today, we are building a Linux production environment. This is a complex task that has to be done. Although I have done it many times, there are still many steps and commands that I don't remember. Every time I find information everywhere, it is very troublesome. So I wrote do
the fifth column-C take character \ (text letter \)[[emailprotected] oldboy]# cut -d " " -f3,5 oldboy.txt |sed ‘s#,myqq #,#g‘24. How many lines does the WC statistic file have?How many rows are in the-l statistics file[[emailprotected] oldboy]# wc -l /etc/services10774 /etc/services25, DUMPE2FS display the file system (partition) informationinode sizeblock sizedumpe2fs /dev/sda3|egrep -i "block size|inode count"[[emailprotected] ~]# dumpe2fs /dev/sda3 |grep -i "inode size"dumpe2fs 1.41.12
Basic features of Bash(1) Command historyHistoryCall the last parameter of the previous command! $Esc.atl+.Control how the command history is recordedEnvironment variable: HistcontrolIgnoreedups: Ignore duplicate commands, continuous and same as "repeat"Ignorespace: Ignores all commands that start with whitespaceIgnoreboth:ignoreedups,ignorespaceHow to modify Env
the table is complete: Query the id=1 table: Enter id=1 table data by alias: query If there is a teacher with job null: for female teachers on a specified date: Multi-Criteria query: Query the ID at the end of the name for E: query begins with the specified character: query with Z in the name: ID Flashback Arrangement: multi-valued sorting: Male and female groups: total number of records queried: Limit Paging query: more Learning Resources and references: MySQL lear
Vim basic operations and vim basic commands
Copy y
Paste p
Cut d
When the row processes yy (copy row), dd (cut row)
Multi-row processing nyy (copying multiple rows) and ndd (cutting multiple rows)
Line paste when row copy is used
Partial row pasting when using region Replication
Intra-row processing y ^ (copying from the cursor
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.