Here are some of the notes I learned about Linux, as summarized belowFirst of all to popularize common sense: DNS is used to resolve the domain name, the URL port default is 80, can not write, localhost is 127.0.0.1, if it is root, the prompt is: #,
Beginner Linux, summed up the basic common Linux commands.First, System management commands1. LogoutExit--> is used for character interface, user switch, and graphical interface to close the terminal window;Logout--> only for text terminals2.
CatUsage rights: All usersHow to use: Cat [-ABEENSTTUV] [--help] [--version] FileName-A:--show-all equals-vet-B:--number-nonblank to non-null output line number-E equals-ve-E:--show-ends displays "$" at the end of each line-N:--number All line
What is sed?Sed is a stream editor with the full name of stream editors, which means data that can be processed or piped. Mainly for rows, that is, line editing. The default is not to edit the file, when processing, the current processing of the row
1: Create file: Touch file nameThe touch command can also change the access time and modification time of an existing file without changing the contents of the file.Change modification time only touch-m file nameChange access time only touch-a file
LS lists the files and directories in the current directory (does not show hidden files)-a lists all files and directories in the current directory-l lists details of all files and directories in the current directory except hidden files
Learning Environment: Cent OS 6.5file processing commands:Ls:list Display the catalog file $ls –l show details $ls –ld Show directory Permissions $ls –i Display i-node numbers represent the same inode
• Format of commands • Command "Options" "Parameters" • Note • 1. Use a space separator • 2. Supports up to 256 characters clear: Clean screen, you can use Ctrl+l. Pwd:print working Director (prints the current working directory) cd:change directory
?Use Ctr + Alt + F1 (2,3,4,5,6) to enter the terminal.Use Ctr + Alt + F7 to return to the interface.?
Date
Show system date
Cal 2015
Show Calendar for year 2015
Reboot
Restart
Commands for shutting down and viewing system information
Command
Description
Shutdown
Normal shutdown
Reboot
Restart your computer
Ps
View current program execution
Today I learned the understanding of Linux commands and the basic commands for managing files and directories in a Linux system.In Linux systems, a command is required to implement a function, and the execution of a Linux command relies on the shell
Find/root/data-type f-exec rm-rf {} \;Find/root/data-type F | Xargs rm-fFind-type to find by file typeDelete all files in a directory, but keep a specified fileMethod One:find/root/-type F! -name "File10" | Xargs rm-ffind/root/-type F! -name "File10"
Used for a long time Linux, but also only used some commands, and did not go into full study, a long time ago bought a "Linux command specification Quick check" manual, there is a CD-ROM, there is a comparative system of the tutorial. So today I
CP Copy files or directories-F Overwrite the target file or directory with the same name without reminders, but instead force overwrite-I alerts the user to confirm when overwriting a file or directory with the same name-p copy preserves the
Linux: All FilesCreate a fileMkdir/hello establishing/hello directoryRemove directory rmdir-p remove only empty directoriesInstall can also create a directoryTouch file name Create a file Nano Build fileVIM + filename creation filedeleting filesRm-
1.ShellThe Shell is the user interface of the Linux system and provides an interface for users to interact with the kernel. It receives the command entered by the user and feeds it into the kernel to execute .The shell is also known as the LINUX
Cat View Text File contents-B: Blank lines are not included for each line number-N: Numbering All Lines[[Email protected]host01 tmp]#Cat-an/root/anaconda-ks.cfg1# Kickstartfileautomatically generated by anaconda.$2 $ 3#version =devel$4
Linux basic commands1. What is the symbolic representation of the absolute path? What is the current directory and top level directory used for? What does the home directory say? What are the commands for switching directories?2. How do I view the
Symbolic Linksln-s ~/projiect/haha/link1//Create in current directoryA symbolic link to the ~/projiect/haha directory, and the operation of the file under the Link1 directory is the operation of the file in the Projiect directoryRM Link1 Delete the
1. First introduce a test method that is the same as testing [expression] (Always note that there are spaces before and after expression, there will be an error if there are no spaces)This test method is often used as an if condition./home/www This
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.