// This article is based on CentOS6.3 distribution
The file command is used to verify the file type and print it to the terminal. The file command checks the file types in the following order:
Check the file types supported by the file system.
Test commands in linux
Test mark
Meaning
File name and type
-E
Whether the file name exists
-F
Whether the file name exists and is a file
-D
Whether the file name exists and is a
A Brief Introduction to the use of Linux Operators
In Linux, the identifier can help us simplify a lot of unnecessary work and greatly improve our work efficiency. Here we will introduce the commonly used identifier in shell.
Linux identifier1.
./Repo init-u git: // android.git.kernel.org/platform/manifest.git-B gingerbread
Traceback (most recent call last ):
File "./repo", line 603, in
Main (SYS. argv [1:])
File "./repo", line 570, in Main
_ Init (ARGs)
File "./repo", line 184, in _ init
Famous pipe nameless pipe and famous pipe:1. Pipeline is a special type of file, in the first-in- first-out to meet the principle of write can read and write, cannot locate read-write location.2. The piping is unidirectional.3. The nameless pipe is
The LS command is one of the most commonly used commands under Linux. It is the abbreviation of the list, the lack of saving LS is used to print out the current directory of the list, if LS specifies a different directory, then the specified
Famous pipesErrno is set only if a library function fails. When the function runs successfully, the value of errno is not modified. This means that we cannot determine if there is an error by testing the value of the errno. Conversely, it is only
Syntax for the Read command command:Read [parameter] variable name commonly used parameters are as follows:-t timeout to set the time-out.-P Prompt Sets the prompt message, which will appear before the cursor.Condition test:The condition test can
What?List contents of a directoryHow? ls [ -A Bcfghlo [email protected] ghiklmnopqrstuwx1 ] [file ...]points--commonly used parametersLs-l Displaying details of directory files [properties of Linux files]Ls-t in reverse order by modified
The process is simply an execution of a program, the process described here generally refers to the process running in the user state, and the different processes in the user state are isolated from each other, they must be in some way to
1. Directory Management1.1, the directory structure of Linux.: Current Directory.. : Top level Directory/: Root directory/bin: binary, executable commands/boot: Boot, the file that the operating system uses to boot the system, kernel, grub/dev:
CdRole: Switch DirectoriesCommon options:~ Switch to the current user home directory.. Switch to Parent directory-Switch to the previous directory locationNote: When a user logs on to a server, the default directory is the user home directory, and
1. Use the ls-l command to view the file type and permissions[email protected] etc]$ LS-L----------.1Root root899October - -: +Gshadow----------.1Root root890October - -: AGshadow--rw-r--r--.1Root root801April1 .GSSAPI_MECH.CONFDRWXR-xr-x.3Root
I. Overview of the OrderDirectory Management Commands: Ls,cd,pwd,mkdir,rmdir,treeFile Management: Touch,stat,file,rm,cp,mv,installIi. detailed usage of commands1.ls-list Directory Contentsls [OPTION] ... [FILE] ...-L: Long format1th column 1th bit:
Phase Three third Lecture1. Group Management/user management (important file system will be backed up in real time file-)Vim/etc/group: Group Management File://Group name: Password Control key: Group ID: memberVim/etc/gshadow: Group Password
Linux System file properties:[[Email protected]_back ~]# stat keepalived-1.2.7.tar.gz View file propertiesFile: "Keepalived-1.2.7.tar.gz"size:289380 blocks:568 IO block:4096 Normal filedevice:803h/2051d inode:282734 links:1Access: (0644/-rw-r--r--)
Common basic usage features of Find grep sed awk under LINUXJust to make yourself a higher standard, this is the beginning of a 6-month small white advanced road!Learning Linux Basic commands these days is a bit of a crime, especially for files
Pipelines can only be used for communication between relationships, whereas in a FIFO, a path is accessible so that communication is possible.FIFO communicates in the first-in, first-out principle, and the data that is written is first read from the
As mentioned before, what is true and false in bash is judged by whether the end state of the command is zero. Return 0, that is true, return non 0, that is false.In bash, this is a formula that can affect a program's flow, called a conditional
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.