1.Linux composition kernel, shell, tool program has Sh.bashAn example!#/bin/bashEcho 'Before execution chmod +xExecution./2. a little trick cp/dev/null/var/log/apache2/access.logUse/dev/null to apache2 log files in the clear sky Note: Think of /dev/null as a "black hole". It is very equivalent to a write-only file. All content written to it is lost forever. and t
First,/dev/shm theory
The kernel configuration in the default Linux distribution will open Tmpfs and map to the SHM directory under/dev/. You can view the results through the DF command.
/dev/shm/is the next most useful directory for Linux because it's not on the hard drive, it's in memory. Therefore, under Linux, there is no need for a lot of trouble to build
Environment: VMware WorkstationCentos7.2 x64A failure occurred:Divide two partitions on two disks to do PV (physical Volume):Modify two partition ID to 8ePvcreate/dev/sdb7/dev/sdc7Can ' t open/dev/sdb7 exclusively. Mounted filesystem?Because these two disks were previously used for soft Raid5, uninstall RAID5 First and then delete them.Umount/
Recently studying Webpack, I heard that webpack can build a small server (using VUE-CLI friends should have seen it), so eager to try. However, in the actual operation found that using Webpack to build the server still have a lot of pits, on the one hand because of their unfamiliar documents, do not understand the webpack-dev-server mode of operation; On the other hand, after flipping through a lot of blogs and articles, It is found that many configur
Introduced /dev/shm/ is a use that isTmpfs File system device, is actually a special file system. RedhatThe default size is half of physical memory,Make time unavailableMKFSformatted. Tmpfs is a memory-based Linux/unix system. Virtualfile System. TMPFS can use your memory or swap partition to store files (that is, its storage space isVirtual Memoryin, the VMbyReal Memoryand theSwapcomposition). Thus, TMPFS primarily stores staged files. It has the fo
In the use of VUE development process, it is unavoidable to go to the local data address request, and the original configuration in dev-server.js , the new version vue-webpack-template has been deleted dev-server.js , instead webpack.dev.conf.js , so configure local access in the webpack.dev.conf.js configuration.Now we're going to use the Express in node to solve the problem of local data requests. Here ar
Think of/dev/null as a "black hole". It is very equivalent to a write-only file. All content written to it is lost forever. And trying to read content from it is nothing. However,/dev/null is very useful for both the command line and the script.
Prohibit standard output.
1 Cat $filename >/dev/null2 # The file content is missing and will not be exported to stand
Use/dev/null 2>1 to do this. This command means that the standard output and error output are all redirected to/dev/null, that is, all the information that is generated is discarded.
Here's a look at the difference between command > File 2>file and command > File 2>1 . The first command > file 2>file means to send the standard output information generated by the commands, and the error output information to
The default system will load/DEV/SHM, which is called TMPFS, some say with RAMDisk (virtual disk), but not the same. Like a virtual disk, TMPFS can use your RAM, but it can also be stored using your swap partition. And the traditional virtual disk is a block device, and requires a command such as MKFS to really use it, TMPFS is a file system, not a block device; you just install it and it's ready to use.TMPFS has the following advantages:1. The size o
Tags: device test redirect output redirect and color loss display function/dev/null belongs to the character special file, it belongs to the empty device, it is a special device file, it discards all the data written in it, the content written to it will be lost forever, and there is no content to read.We use the file command to see if the type is a character special file.file /dev/null/
IamlaosongI have a data import program, with Crontab set timed execution, sometimes the data need to re-import, on the human run once, the results found that the time for manual import is greater than the timing of the execution time, the reason, the initial estimate is to show the flowers, because the program in each import a data, Displays the name of the imported data and the record ordinal, to save time, you can redirect the output to/dev/null. Su
Transferred from: http://www.2cto.com/os/201411/354888.htmlIntroduced/dev/shm/is a device that uses the Tmpfs file system, which is actually a special file system. The default size in Redhat is half of physical memory , so that time is not MKFS formatted.TMPFS is a memory-based virtual file system on the Linux/unix system. TMPFS can use your memory or swap partition to store the file (that is, its storage space in virtual memory, the VM consists of re
The purpose of this article is to experience the cool effects of automatic pop-up browser using the hot update and build of the Webpack server.1. Installation of Webpack and Webpack-dev-serverGlobal installation Webpack, using the command NPM install Webpack-gGlobal installation Webpack-dev-server, using the command NPM install Webpack-dev-server-g2. Project file
Tags: pts read/dev/zero null infinite swap head strong emptyCommon Command Displaythe difference between/dev/null and/dev/zero1./dev/null: Represents a black hole, typically used to discard unwanted data output, or an empty file for the input stream1.1 writes the useless output stream to the black hole drop.Curl-iwww.b
It seems Baidu is still not as good as Google Ah. The information found on Baidu is completely useless. Google has found ...1: When/DEV/XVDD does not exist error occurs, you can try the followingMount/dev/cdrom/mnt/xs-toolsInstallation process for 2:xen-tools:CD/mntlsmkdir xs-/dev/xvdd/mnt/xs-tools/#/DEV/XVDD does not
ANDROID5, security enhancements/dev directory cannot be viewed, and cannot enumerate serial ports
View/dev must first know what type of process your app is running on.
Want to know what your process (APP) belongs to *.te?
View with ps-z: Root@aaaa:/#ps-z ps-z label Userpidppidname ................ ........ ............... ........ u:r:platform_app:s0 u0_a234003758 Com.android.browser u:r:platform_app:s
Many friends who use Plsql Dev have encountered this kind of hint as follows: The reason why Plsql Dev collects user statistics while the user is running, but because the user you are currently logged on does not have permission to access the V$session,v$sesstat and V$statname view, So it is not possible to collect statistics for the current user and conflict with the automatic statistics configured in th
The shell can often be seen: >/dev/null 2>1Eg:sudo kill-9 ' ps-elf |grep-v grep|grep $1|awk ' {print $4} ' 1>/dev/null 2>/dev/nullThe 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 mean
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.