(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
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
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
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
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
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
Basic LINUX operation commands and basic linux operations
Ls to list files and directories-A: displays all files and directories, including hidden files and directories.-L: displays full attribute information of files and directories.
Cd changes current path(Relative path and data pair path)
Pwd displays the current working file directory
Create a directory u
that developers can submit locally under distributed Each developer machine has a server database backup file record history back to the past multi-share003. Git workflowWorkspaces: code written at work staging area: Staging, helping us save the code as a transition layer to avoid misoperation protect workspace and version area Branch processing version area: Manage version, code action in repository generates version004. Some basic Linux
Basic Linux usage-Basic commands-general Linux technology-Linux technology and application information. For details, refer to the following section. 1. display the content in the current working directory
To know what files or directories are in the current working directory, you must use the "dir" command in the "command prompt" of Windows, and then use the "ls
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.