Excerpt from: http://miaozk2006.blog.163.com/blog/static/3824705820111028183996/First,/dev/shm/Introduction:/dev/shm/is a very useful directory for Linux because it is not on the hard disk, but in memory. Therefore, under Linux, it is not necessary to build RAMDisk, the direct use of/dev/shm/can achieve a good optimization effect.One of the/
This article goes from http://www.kissyu.org/backgroundWe can often find such statements in a shell script >/dev/null 2>1 . Before I did not go into the role of this command, copy replicable, until last week I wrote this order accidentally 2>1 >/dev/null , a little problem, I began to understand the "mystery" behind the order.Shell Redirection IntroductionJust like the program we write, a program handles th
Under Linux, the/dev directory is important and the various devices are below. Dev is the abbreviation for device, which means devices. /dev This directory is important for all users, because this directory contains all the external devices used in the Linux system.But here is not the driver for the external device, which is not the same as windows, it is actuall
Linux is a file-based system, and all hardware, such as software, will have a corresponding file representation under the directory. For Dev This directory, we know the file below it, which represents the Linux device. In Windows systems, devices are well understood, like hard disks, which refer to real hardware. Under Linux for file systems, there are files associated with these devices. Access to them can be put into the actual hardware, think or Li
A 500G space is shared on the storage, mapped to the Linux system offering, and the environment is made up of 2 nodes.
one. Test one: Direct Mount
After the format of Fdisk is as follows:
[Root@rac1 u01]# Fdisk-l
......
disk/dev/sdk:536.8 GB, 536870912000 bytes
255 heads, Sectors/track, 65270cylinders
Units = Cylinders of 16065 * 8225280bytes
Device Boot Start End Blocks Id System
/DEV/SDK1 1 65270 5242812
[Step 1]
Welcome to Dev-C ++ install program. Please do not install this version of Dev-C ++ over an existing installation.
[OK]
Welcome to develop the dev-C ++ installer. Do not overwrite the existing installation with Dev-C ++ of this version.
[OK]
========================================================== =========
Control terminal (/dev/tty)
The console terminal (/dev/ttyn,/dev/console) can be switched using ALT + [F1-F6] keys
Virtual terminal (/dev/pts/n) Pseudo Terminal in xwindows Mode
Q: What is/dev/console?A:/dev/console refers to
Standard output input device stdinDetailed analysis of Linux shell data redirection (input redirection and output redirection). They correspond to several special file descriptors, FD0,FD1,FD2 (Stdin,stdout,stderr)Such as:[Email protected] shell]$ Cat>teststdinTest#ctrl +d#cat从/dev/stdin get the data and then the standard output, the input to the Teststdin file[email protected] shell]$ cat TeststdinTest[Email protected] shell]$ Cat>teststdinTest#ctrl
The shell can often be seen: >/dev/null 2>1The result of the command can be defined in the form of a%> output/dev/null represents an empty device fileWhere does the > delegate redirect to, for example: echo "123" >/home/123.txt1 means stdout standard output, the system default is 1, so ">/dev/null" is equivalent to "1>/dev
Transfer from http://blog.chinaunix.net/uid-25100840-id-3271224.html a few days ago interview has such a question, more strange: Explain the meaning of >/dev/null 2>1: I was scratching, also did not think out, wrote a clear buffer, hehe online search, as follows: http://wangqiaowqo.iteye.com/blog/1354226 but I only looked at the following paragraph, the back did not see {shell may often see: >/dev/null 2>1T
One,/DEV/SHM concept
/DEV/SHM is a TMPFS file system, a temporary file system, is a memory-based file system, which means that files in/dev/shm are written directly into memory without taking up hard disk space.
Under CentOS and Redhat, the/DEV/SHM directory is a link to the/RUN/SHM directory, under the Ub
Linux is a file system, and all hardware, such as software, will be represented under the appropriate directory. For the dev directory, we know that the file below it represents the Linux device. In Windows, devices are well understood, like hard disks, and disk refers to real hardware. And under Linux on the file system, there are the files associated with these devices. Access to them can be put to the actual hardware, think or Linux flexible. Becom
In the previous article, we introduced the Ionic Project Thermal Update test under the local development environment,In this article, we'll show you how to implement a hot update with the Cordova-hot-code-push-local-dev-addon plugin removed.Steps to use:1. Install CLI:NPM install-g cordova-hot-code-push-cliHere, we need to describe in detail the various commands provided by the CLI, which we will use later. How to use: Cordova-hcp >, (1) Init: Creates
Unix has several input and output streams, which correspond to numbers as follows:
0-standard input stream (stdin)
1-standard output stream (stdout)
2-standard error stream (stderr)
Command results can be defined in the form of>.1./dev/null indicates that the device file is empty.2. Redirection symbols:> redirect output to overwrite the file;
> Redirected output without overwriting the file;
1 indicates stdout standard output. The default value is 1.
The generic file system name of the Linux system is similar to/DEV/SDA1 or/DEV/HDA1, but today, with the maintenance of the system, the DF-H command is used to knock out the/dev/mapper/volgroup-lv_root and/dev/mapper/ Volume-lv_home two file system name, puzzled, on the Internet to find information, in this talk about/
Dev is the abbreviation of device. The/dev directory is very important to all users. This directory contains all external devices used in Linux. However, this is not the driver of the external device, which is different from the windows and DOS operating systems. It is actually a port that accesses these external devices. We can easily access these external devices, and there is no difference between access
Name
Random, urandom-kernel random number source DevicesDescription
The character special files/Dev/randomAnd/Dev/urandom(Present since Linux 1.3.30) provide an interface to the kernel's random number generator. File/Dev/randomHas Major device number 1 and minor device number 8. File/Dev/urandomHas Major device number
Linux redirection 0, 1, and 2 represent standard input, standard output, and standard error message output, which can be used to specify the standard input or output that needs to be redirected.In general use, the default is the standard output, both 1. When we need special use, we can use other labels. For example, output a program's error message to the log file:./program 2>log. The standard output is still on the screen, but the error message is output to the log file.In addition, redir
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.