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 star
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
Common Linux commands (27th) and common linux commands
In linux, the df command is used to check the disk space usage of the file system of the linux server. You can use this command to obtain the space occupied by the hard disk and the remaining space.
1.Command Format:
Df [Option] [file]
2.Command function:
Displays
Accumulate common linux commands and common linux commandsAccumulate common linux commands
Record problems encountered in daily life:
Linux files contain ^ M The shell command tr can be used for removal. The specific command is as follows:
cat -v yourfile | tr -d "^M" >
Vi usage and Common commands, vi Use common commands
Keywords: vi usage and Common commands1. Use of the vi Editor
Some functions of the editing appliance:1) open a file, create a file, and save the file2) move the cursor3) text editing4) Copy, paste, and delete multiple ro
Summary of common shell commands and common shell commands
Umask
Set the default mode when creating a file. For a file, the maximum value is 6, and for a directory, the maximum value is 7.The system does not allow the creation of a text file to grant the executable permission, and the corresponding directory bit indi
Several common Linux commands and common Linux commands
Ls
Purpose: view files in the directory
Format: directly view the current directory by ls, or the ls parameter/directory name.
Parameter:-l View Details
-A: Show Hidden Files
. Indicates the current directory
.. Parent directory
-G: Mark different types of files w
Summary of common Linux commands (5) disk management and common linux commands
Disk Management
Command
Option
Annotation
Example
Df
[Option]
Display disk space usage
Displays the disk space as an employee, in MB: df-M
-I
Display Results Using i
[Mysql] mysql database Common commands, mysql database Common commands1. Database authorization
Go to the mysql database: mysql> use mysql; set a new password for the root user: mysql> update user set password = password ("new password") where user = "root "; refresh the database mysql> flush privileges; nagios monitors mysql> grant process, replication client on
Common linux commands and common linux commands
1. Change the group to which the chgrp belongs:
For example, change the group of install. log to users.
chgrp users install.log
ls –l
View results: root users 68495 25 install. log
Owner Group
2. chown changes the owner
For example, change the owner of the
Notes on common Oracle commands and common oracle commands
Login without a password: sys as sysdba
View all current databases: select */name from v $ database;
View the current database connection user: show user
View All Tables of the current data: select table_name from all_tables;
View Structure: for ex
Common commands in linux: 1. Common commands in linux
Man help document
Usage method: man command name, such as man; simple view method: command name -- help
Or help command name
Ls list folder content
Tree View directory structure
Cd switch directory
Pwd View Current Directory
Cp Replication
Move music videos
002day -- common linux commands and common linux commands
Exit terminal command: exit
Command to disable Linux: init 0
How to switch the virtual terminal: Ctrl + Alt + F [1 ~ 6]
Who command: check how many terminals are open
Whoami command: Get the current user name
Date command: view the time and date
Cal comma
Common Linux commands (30) and common linux commands
The cal command can be used to display calendars in the Gregorian calendar. The Gregorian calendar is an international calendar, also known as the Gregorian calendar. The "Gregorian Calendar", also known as the "solar calendar", is a year when the earth is traveling
Common Linux commands (24) and common linux commands
Chown changes the owner of a specified file to a specified user or group. The user can be the user name or user ID, and the group can be the group name or group ID; files are separated by spaces to change the permission list. Wildcards are supported. The system admin
Common Linux commands (16) and common linux commands
The whereis command can only be used for searching program names (where is the program installed ?), Only binary files (parameter-B), man description files (parameter-m), and source code files (parameter-s) are searched ). If the parameter is omitted, all information
Common Linux commands (13) and common linux commands
The head and tail are just as easy to understand as their names. They are used to display a certain number of text blocks at the beginning or end, and the head is used to display the beginning of the file to the standard output, and tail takes it for granted that it
Common Linux commands (10) and common Linux commands (
The nl command is used in linux to calculate the row number in the file. Nl can automatically add the row number to the output file content! The default result is a little different from cat-n. nl can compare multiple display designs of the row number, including th
Common RedHat commands and common redhat commandsCommon RedHat commands
1. query registration module software
yum list all | grep subscription
2. Uninstall the Registration Module
yum remove subscription-manager
3. Restart now
shutdown -r now
4. decompress the package to the specified path.
tar zxvf /source/kern
Common mysql commands at work and common mysql commands
Connect to local mysql
Mysql-u root-p
Connect to remote mysql
Mysql-u root-p-h 192.168.1.2
Export a table in the local database (for example, the USERS table in the exported data)Enter the database password after you press Enter.
Mysqldump databases-u root-p
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.