1. hide files or folders
If you don't want some folders or files to be seen by others, you can hide them! The following is the specific method of action.
Step 1: In the My Computer window, right-click the file or folder and choose Properties from the pop-up shortcut menu (see Figure 1, left) to open the File Properties dialog box.
Step 2: Check the "Hide" checkbox, and then click OK, as shown in Figure 1 right.
> Read only: When a file or folder is set to this property, it can only be opened
number of disks used by users in tablespaces. The quota can be set by byte, kilobytes, megabytes, or unlimited.
Assign a simple table to the user
A simple table can limit the resources consumed by users during sessions. These resources include the database connection time, idle time, and the number of logical reads of data in each session. The default table has no limit on the resources.
Specify role
utilization, and Network File System utilization. When running without any parameters, iostat displays the three reports. The-c,-d, and-h parameters can be used to separately display the three reports.(4) freeThe Free command displays the memory statistics of the primary memory and swap space. The-t parameter can display the total memory count, and the-B parameter can be displayed in bytes, if-m is used, it is displayed in megabytes. By default, it i
the same time. APC may compile the same file multiple times, write locks ensure that only one process will attempt to compile and cache uncached scripts. Other processes attempt to use this script will not use opcode cache, instead of locking and waiting for cache generation.
Apc. report_autofilter booleanWhether to record all scripts that are automatically not cached due to early/late binding.
Apc. include_once_override booleanOptimize the include_once () and require_once () functions to avoid
/sys/block/sda/queue/schedue
[Noop] anticipatory deadline cfq
Permanent modification:
# Vi/boot/grub/menu. lst
Change to the following content:
Kernel/boot/vmlinuz-2.6.18-8.el5 ro root = LABEL =/elevator = deadline rhgb quiet
After the restart, view the scheduling method:
# Cat/sys/block/sda/queue/schedue
Noop anticipatory [deadline] cfq
It's already deadline.
3) disk driver layer: for sequential read systems, the bandwidth of the disk interface layer is easily the bottleneck;
4) disks:
In this paper, we describe how Python implements split files and merge files. Share to everyone for your reference. Specific as follows:
The split file split.py is as follows:
#!/usr/bin/python########################################################################### split a file into a set of parts; Join.py puts them back together;# this was a customizable version of the standard UNIX split command-line # utility; Because it is written in Python, it also works on Windows and# can be easily mo
This article describes the knowledge of C # bits, Bytes, and so on.1. Bits (BIT)Bit (bit) is called a bit, refers to the binary in the one, is the smallest unit of information binary.Bit is also called small B, denoted by B.2. Bytes (bytes)A 8-bit representation of a byte.One byte can be calculated by the following formula to represent a maximum of 25628=256">28=256"> 28=28=256 But it's not actually 256, 8 bytes is the maximum:111111This value is27+26+25+24+23+22+21+1=255">27+26+25+ 24 + 23+22+2
bytes, kilobytes, and megabytes.
Vmstat
Run the vmstat 2 command to display a line of system information every two seconds, including CPU usage, memory usage, and disk IO. With this feature, we can monitor system resource usage in real time and optimize the system.
Sar
The sar tool can help us collect dynamic system information. It has rich parameters and powerful functions. The sar tool periodically and q
Article Title: The simplest total bandwidth limit in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The simplest total bandwidth limit (tc script, each mainstream linux has tc and iptable, cp to a file to grant x permissions, execute OK ).... according to the bandwidth limit in the pureftp faq...
#! /Bin/sh
# Simple bandwidth limiter-
# Chang
Sometimes we need to show the size of a file on a Web page, or the size or number of other data.This number is often from a large span, if the unit B is a bit, if 1G is up to 1073741824 of the number, this time we need to format according to the size, such as less than 1K is displayed in units B, less than 1M is displayed in kilobytes, less than 1G is displayed in megabytes, etc...The Format function refere
We commonly have kb/s and kb/s two species of 1,kb/s, also known as Kbps. The lowercase b In this case is the abbreviation for bit (bit), which is the meaning of bit. A bit is the binary 0 or 1. The General representative transmission Unit, p is the/number, S is the second. BPS is b/s= bits per second KB is gigabit MB is megabits. What we install broadband operators say about 2M broadband, 4m,20m, or even 100M broadband is said to be Mbps (MB/s) of how many megabits per second.Look again at kb/s
some interactive commands: h displays the help document, k prompts to enter the process to be killed, n prompts to enter the process to change the priority, r re-schedules the running process, q: Exit top. 7) the free command shows the number of used and idle memories. The unit is kilobytes. You can use the-m option to specify the display unit as megabytes. 8) watch command. by default, a command is re-run
PHP format byte size method.
/*** formatted byte size * @param number $size bytes * @param string $delimiter number and unit delimiter * @return the size of the band unit after string formatting */ function Get_byte ($size, $delimiter = ') { $units = array (' B ', ' KB ', ' MB ', ' GB ', ' TB ', ' PB '); for ($i = 0; $size >= $i
Usage:
$size = ' 5454646 '; Echo get_byte ($size);
Output:
5.2MB
Explain:
The parameter $size the number of bytes passed i
Sometimes we need to show the size of a file on a Web page, or the size or number of other data.
This number is often from a large span, if the unit B is a bit, if 1G is up to 1073741824 of the number, this time we need to format according to the size, such as less than 1K is displayed in units B, less than 1M is displayed in kilobytes, less than 1G is displayed in megabytes, etc...
The Format function ref
startup.Effective Period: The global variables are globally visible, but only the clients that connect after the change initialize the corresponding session variables from the global variables. The current session and logged-on session are not affected.
For the size value, you can use the suffix K, M, or G to indicate kilobytes, megabytes, or gigabytes, which are case insensitive. 2. set the usage of Syste
more, up to three can be added to display longer process information.
3. Kill
The kill command can terminate the process and then connect the process number.
4. Free
Free displays the memory usage of the system. -B,-k, and-m parameters indicate memory usage in bytes, kilobytes, and megabytes.
5. Vmstat
Run the vmstat 2 command to display a line of system information every two seconds, including
Display information about directory hierarchies or file disk usageDu [options] [path-list]Parametersdu , with no parameters, displays information about the working directory and its subdirectories disk usage,path-list Specifies the list of path names for the directory or file to get disk occupancy informationOptions-A reports all normal files and the space occupied by each directory, default KB units-C Displays the total space occupied at the end of the output result-H reports size in
sufficient
To view your hard disk usage :View disk and partition information: Fdisk-lTo view file system Information: DF
DF [-m displays size in megabytes] [-K displays size in kilobytes] [-H in gb/mb/kb way] [-I with inode quantity display] [-A lists all file systems including special systems such as/proc] [-t display file system type] [-H displays in 1024=1000 mode]
DF reads the data i
:
$ Vmstat 10
(3) iostat
The Iostat command (included in the sysstat package on Ubuntu, Red Hat/Fedora) provides three reports: CPU utilization, device utilization, and Network File System utilization. When running without any parameters, iostat displays the three reports. The-c,-d, and-h parameters can be used to separately display the three reports.
(4) free
The Free command displays the memory statistics of the primary memory and swap space. The-t parameter can display the total memory count,
Tag: Use OS file 2014 re c
The Linux du command is used to view the space used, but unlike the DF command, the Linux du command is used to view the space used by files and directory disks, or is there some difference with the DF command.
1. Command Format:
Du [Option] [file]
2. command functions:
Displays the disk space used by each file and directory.
3. command parameters:
-A or-All indicates the size of individual files in the directory.
-B or-Bytes: displays the size of directories or files
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.