Using/dev/null
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
1./dev/null/Dev/null is equivalent to a black hole, and the data written into it will be lost forever. No data can be read from it.In general,/dev/null is used to block shell error output../Myshell. Sh 2>/dev/nullThe preceding command is used to execute a custom shell. If an error message is displayed during execution,
In a Unix-like system,/dev/null is called an empty device, which is a special device file that discards everything written to it, but he reports that the write succeeds and reads it immediately to get an EOF. In programmer jargon, especially in Unix jargon,/dev/null is known as a bit bucket, or bit-bucket, or a black-hole. This empty device is often used to discard unwanted output streams, or as an empty fi
There are two installation failures that are caused by dependent library version issues:1, because the source needs to be updated, the following actions:Libssl-dev: dependent: libssl0.9.8 (= 0.9.8o-1ubuntu4) But 0.9.8o-1ubuntu4.4 is about to be installed workaroundGo to Settings, Update Manager, System Management, Systems Manager, select the Updates tab in the pop-up Software Sources dialog box, and check the four check boxes under Ubuntu update to tu
Random numbers in Linux can be generated from two special files, one/dev/urandom. The other is/dev/random. the principle of generating random numbers is to use the current system's entropy pool to calculate a fixed number of random bits , and then return these bits as a byte stream. entropy Pool is the current system of environmental noise , entropy refers to a system of chaos, system noise can be evaluated
From Code: Blocks to Dev-C ++, Dev-C ++ one-stop installation and debugging, devdev-cSingle file debugging
Codeblocks only supports single file compilation. It does not support single file debugging. Only the entire project can be debugged. The path name cannot contain Chinese characters or spaces!This is because the application is deprecated..
Fuck you!
I used something else.
WHO supports single-file
In Cron, everyone prefers to write command >/dev/null.I have been wondering what it means. First, the "" in it does not mean running in the background. cron does not need to write back-end operations. He found the following information, ">/dev/null" is short for ">/dev/null 2> 1. The latter's explanation is detailed in the reposted Article below ~~ Note that ">
And/dev/CDROM
Luo Weifeng 2011-5-17
Reprinted Reserved: http://blog.csdn.net/luoweifeng1989/archive/2011/05/17/6426193.aspx
This problem seems to have plagued me for a short time, because I want to view the CD mount point. After using the mount command to view the mount point, the device/dev/sr0 is mounted to the disk I prepared, I tried umount to mount this device, and there was no difference after I mou
If you want random data in a Linux/Unix type OS, the standard way to do so is to use/dev/random or/dev/urandom. these devices are special files. they can be read like normal files and the read data is generated via multiple sources of entropy in the system which provide the randomness./Dev/random will block after the entropy pool is exhausted. It will remain bloc
. Create a new directory:/users/username/documents/jenkins/xcode-shell, copy "Ipa-build" to the inside.2, in the above directory, create a new dis-one-key-ipa-build.sh file, the content is:1 #!/bin/bash2./ipa-build/users/username/documents/testonekeypublish/-n-t testonekeypublishenterprise-o/Users/ Username/documents/jenkins/xcode-shellwhere/users/username/documents/company document/testonekeypublish/is the project path,-n indicates that the pre-package execution clean,-t indicates the target na
Webpack-dev-server:It is a static resource server, only for the development environment;Webpack-dev-server will save all the compiled static files in memory;Webpack-dev-middleware:is a middleware to deal with static resources;The webpack-dev-server, in fact, is a small Express server, which also uses Webpack-
DEV master-slave table, dev master-slave table
1. Hide the tables in the Master/Slave tables tab.
Hidden when the main table content does not include a sub-table, the plus icon of the master-slave table. The result is as follows.
Implementation Code
Private void gvMain_CustomDrawCell (object sender, DevExpress. xtraGrid. views. base. rowCellCustomDrawEventArgs e) {if (gvMain. isMasterRowEmpty (e.
About single-file debuggingCodeblocks only support single-file compilation, does not support single-file debugging, only the entire project can be debugged, there is no path name in Chinese and space, very pit! just because of this deprecation .Go on, you!I'm using something else.Who supports single-file compilation and debugging?Dev-c++When installing, let you choose the icon of the Toolbox, must choose the default, the other ugly cryBut it will come
, * subject to the following conditions: * * The above copyright not Ice and this permission notice (including the * next paragraph) shall is included in all copies or substantial * portion
S of the Software. * * The SOFTWARE is provided ' as is ', without WARRANTY of any KIND, * EXPRESS OR implied, including BUT don't LIMITED to T He warranties of the * merchantability, FITNESS for A particular purpose and * non-infringement. In NO EVENT SHALL RED HAT and/or their suppliers * is liable for An
I am in a foreign company, the boss does not understand Chinese, and the computers we buy are all brand-name machines. Only the computers he and his assistants have installed the English version of XP, and other computers are pre-installed Chinese versions of XP, once the boss needs to add a computer in the exhibition room for him to use, this is troublesome, because our systems are all in the Chinese versi
Hp540, Hp541 installation of XP system driver and installation points (965sata driver)
HP hp540, hp541 notebook, pre-installed Linux system, reinstalled into XP foundSATAThe driver is not supported. During installation, you can only turn off SATA for installation. If the traditional method is difficult to install the operating system, you must not only seize the opportunity to press the "F6" key to load th
// ================================================ ========================================
// Title:
// The simplest configuration of qt4 for Dev-CPP
// Author:
// Norains
// Date:
// Monday 5-November-2007
// Environment:
// Windows XP
// ================================================ ========================================
There are a lot of articles on how to configure the QT environment in
PHP Developer officially released version 5.5, which was developed from last November, after several beta versions. PHP 5.5 contains a series of new features, such as the new Array_column () function and the foreach () loop, which supports scalar iteration keys, including the generators allows the developer to implement a simple co-process.
At the same time, a new version introduces a password hash function, which allows the developer to easily implement a salt-added security password, a new fi
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
definitions. // For the latest information about the corresponding values of different platforms, refer to msdn. # Ifndef winver // allows you to use features specific to Windows XP or later. # Define winver 0x0501 // change this value to the appropriate value for other Windows versions. # Endif # ifndef _ win32_winnt // allows you to use features specific to Windows XP or later. # DEFINE _ win32_winnt 0x0
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.