Five search commands in Linux and five search commands in Linux
Recently, I am studying Linux. Below are some notes.
When using a computer, you often need to find files.
In Linux, there are many ways to do this. The foreign websit
Refresh a simple passwd file for linux commands and passwd for linux commands
**************************************** ******************************** ***************************************
Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. Please indicate the source when you repost
Compression and decompression commands:
. Gz
1. gzip [GNUzip]:/bin/gzip
Gzip option [file] // compressed file,The extension name after compression is .gz.Is the most common and traditional tool in Linux.
// Common software source code package formats
Features: 1) only files can be compressed and directories cannot be compressed.
2) do not retain the original file
E.g. gzipnewfile
2. gunzip [GNUzip]:/bin/gun
Linux text processing commands
SortCommand
The sort command sorts all rows in the file. The sort command has many very useful options, which were initially used to sort the file content in the database format. In fact, the sort command can be considered as a very powerful data management tool to manage files with similar content to database records.
The sort command sorts the content in the file line by lin
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
Common Linux commands (15th) and common linux commands
We often search for a file in linux, but do not know where it is stored. You can use the following commands to search:
Which: view the location of the executable file.Whereis
Linux vim commands and linux vim commands
A detailed introduction of vim commands in linux.
Some advanced editors will contain macro functions, which are certainly not missing in vim. It is very convenient to use Macros in vim:
:
Common commands for linux learning records and commands for linux recording1. enable or disable the server (effective immediately): service iptasbles startservice iptasbles stop2. when the firewall is enabled, make the following settings to enable the relevant ports,Modify the/etc/sysconfig/iptables file and add the fo
Summary of Common commands in Linux and summary of linux commands
Service -- status-all [service status]
Service MySQL restart [restart database]
Pstree-a [show complete commands for each program]
Pstree-c [not applicable to exact representation]
Pstree-l [display tree char
#查看系统内核/Operating System/CPU Informationuname-a# return: Kernel name host name Linux kernel version kernel build date OS version CPU model hardware platform GNU/linux# Viewing the operating system versionHead-N1/etc/issue# View gcc or G++versionGCC-VG++ -v#c++more rigorous grammar rules; #编译阶段, G+ + will call GCC, which is equivalent for C + + code, but becausegcc comma
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 a
Common commands in Linux and Common commands in linux
Including date and time, viewing hard disk information, shutdown and restart, output and view, archiving and compression, and searching.Date and Time
The operation here is equivalent to clicking the time in the lower right corner of windows to view the system date
Five linux search commands, five linux commandsFive SEARCH Command Learning
Explain the five linux search commands: locate, find, which, whereis, and grep.Locate
Explanation: From the man manual, we can see that the locate search is based on the file name, but only depends
Basic linux commands and basic linux commands
Shutdown-h now shut down immediately
Shutdown-r now restart the computer
Reboot now restarts the computer
Logout user logout
Vi editor usage:
1) vi file name
2) Enter I to enter the command mode]
3) Enter esc to Enter command mode]
4) input: [wq indicates exit and keep q! E
Commands for viewing hardware device information in linux and for viewing hardware commands in linux
Reprinted: http://blog.chinaunix.net/uid-26782198-id-3242120.html
# Uname-a # view kernel/operating system/CPU Information# Head-n 1/etc/issue # view the operating system version# Cat/proc/cpuinfo # view CPU Information
Summary of common linux commands and common linux commands
I. Summary of common linux commands
Cd: Open the Directory
Cd/home to the '/home' directory'
Cd .. back to the upper-level directory
Cd... returns the last two levels
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 // rel
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
-Rw
Common Linux commands and common linux commands
1. Common commands
Ls displays the files and folders in the current directory;
-Ltr displays detailed information about files and folders in chronological order. Only folders and files are displayed without parameters.
Vi O
Common Linux commands and common linux commandsLinux yum command
Yum (all called Yellow dog Updater, Modified) is a Shell front-end Package Manager in Fedora, RedHat, and SUSE. Based on RPM package management, You can automatically download and install the RPM package from the specified server, automatically handle dependencies, and install all dependent softwar
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.