a Linux system, in order to speed up the reading speed of the data, some data will not be written directly to the hard disk in a preset situation.Instead, the memory is present, so that if a data is rewritten by you repeatedly, because he has not yet been written to the hard disk,Can be read directly from memory, in the speed must be very fast on quite a lot!However, this is also a bit of a problem, that is, in case you reboot, or shutdown, or an abn
First, view the text:Cat: Connect and Show TAC: Reverse display of text content-N: Show line numbers-E: Displays the line terminator for each lineNote: For Linux systems, the line terminator for each line of the text file is $. The Windows system has two terminator: $ and line breaks.Second, split screen display:MORE: Only support backward, turn to the last screen exit.Less: Same as manSPACE:B:ENTER:K:Third, head, tailHead-n View Top N rowsTail-n: Vie
shutting down or restarting, always)Although the current Shutdown/reboot/halt and so on led order are already in the shutdown before Import line sync This tool call, but do more than a few times more comfortableShutdown)To learn how to use the method, man shutdownCommand:/sbin/shutdown-h ' I'll shutdown after ten mins 'Time is the parameter that must be added, otherwise shutdown will automatically jump to run-level 1 as a maintenance log-in situationExample: Shutdown-h now shuts downShutdown-h
First, command aliases:Alias cmdalias= ' COMMAND [options] [arguments] 'Example: Alias Cls=clearNote: Aliases defined in the shell are valid only for the current shell life cycle, and the valid range of aliases is only the current shell process.Alias: Unalias ComaliasSecond, the command to replace:Replaces a subcommand in a command with the process of executing the result.$ (command), anti-quote: ' COMMAND 'Example: File-2016-12-05-10-21-33.txeTouch./file-$ (date%f-%h-%m-%s). txtThird, bash-supp
above functions;2>: Redirect Error output2>>: Append mode redirect Error output>: Redirect standard output or error output to the same file2. Input redirection:Iv. Pipeline:The output of the previous command, as input to the latter commandExample: 1. Display the number of rows in a file does not display the file nameWc-l/etc/passwd | Cut-d '-f12. Count the number of files in the/usr/bin directory;Ls/usr/bin | Wc-l3. Remove all shells from the current user, requiring each shell to be displayed o
, = representative settings.File or directoryEg1:infor Original permission is drw-r–r– input command chmod u=rwx,g=rw,x=rx inforInfor Permissions to Drwxrw-r-x (note that there is no space in the middle of the U=rwx,g=rw,x=rx)Eg2:infor Original permission is drw-r–r– input command chmod u-w inforInfor Permissions Change to dr–r–r–5. Copy files: CP source file Target file EG:CP. bashrc. bashrc_testsecond, log in rootMethod 1: Enter the command: sudo su then prompts to enter the current account (S
. BZIP2 compression efficiency is better than gzip. Instruction is bzip2-z man.config, direct read is Bzcat man.config.bz2, unzip to bzip2-d man.config.bz25. Tar can combine multiple packages into a single file, and also can compress files simultaneously through GZIP/BZIP2 support, in fact, the WinRAR function of Windows also supports. tar.gz file name decompression. The decompression instructions for tar are tar-jxvf/root/etc.tar.bz2.6. The main role of the dump command is to back up the entire
8th Linux disk and file system managementln [-SF] source file destination file-S: Symbolic connection, if no parameter is a hard connection-F: If the destination file already exists, delete it first and then establish the connectionA hard connection simply writes more than one associated data to a block in a directory and does not use the Inode and disk space. A symbolic connection generates a new inode, which is a new file generated.The file size is
/munin/munin-node.confExample:Allow ^127\.0\.0\.1$Allow ^10\.10\.20\.20$# What address does the supervisor hearHost *# and which portPort 4949Note: 10.10.20.20 is my Munin server, which connects to the client's 4949 port to get the data.Step 3Restart The Munin-node in the client machine :Service Munin-node RestartTest connectionCheck if you can connect from the server to the client's port 4949, and if not, you need to open the port on the firewall in the client machine.Telnet db.linuxnix.com 494
1. Find the file size from 50KB to 60KB under/etc, and list the permissions in fullThe answer is Find/etc-size +50k-size-60k-exec ls-l {} \;or write find/etc \ (-size +50k-and-size-60k \)-exec ls-l {} \;2. Find the file size greater than 50KB and the file owner is not the root file name, and the permissions are fully listedThe answer is Find/etc-size +50k! -user root-exec ls-l {} \;Here! For the "non" decision, which means that if the back is true, the output3. Find files with capacity greater t
Search: Grep-vn ' the ' 1.txt (v is inverse)4. In conjunction with the previous matching usage, here is a summary of the following:^word: string with search word at the beginning of the lineword$: string with search word at end of line\: Skipping characters, deleting special meanings of special symbols*: Repeat 0 to infinitely multiple of the previous characterN1-N2: Lists the range of characters you want to match^list: Character not in list5. Okay, here's the comparison between the files, main
Absolute path and relative pathAn absolute path is a path from the root directory to a directory, which is written from the root directory, i.e./Relative paths are written from the path of the user's current directoryDirectory-related OperationsCD switch path for example: cd/var/www switch to/var/www/pathPWD Displays the current pathmkdir Create a new directoryRmDir Delete an empty directoryDo not describe the operation, you can use the man to viewCopy move and Delete commandsCp,mv,rmModify Defa
"Brother Bird's Linux private Dish Basic article (Third edition)"--Learning notes $su, the Pswad that the user defines, is how much. How to view? P322:login Shell and non-login shell, do not understand. P322:~/.bash_profile,~/bash_login,~/.profile, under what circumstances the 3 files were present. Currently on my host, I see only ~/.profile p323: Flowchart p150: Permission issues, can cp/testing/testing te
Tags: round http pre style hard disk technical chip ACK Self-study noteIntel Chip architecturePS: Upgrade the computer also have to see if the motherboard is suitable for CPU, motherboard suitable for the type of CPU is limitedPS: Now there is no North Bridge, has been integrated into the internal CPU.MemoryHard diskPS: HDD 1. Minimum unit is sector2. Concentric circles of sectors form a track3. A concentric circle to form a magnetic column--------------------------------------------------------
Tags: nbsp/usr basic learning process start Bird brother Cron var CrondThe third edition of Chapter 15 in the fourth edition of the PDF, and then all in the fourth version of the PDF to see. Fourth and third editions are not the same, starting with the fourth edition of notes from this dayAtThe new process is in the/var/spool/at/directory/etc/at.allow/etc/at.denyCron (Crond) systemcrontab command/var/spool/cron/"$ user Name" process file/etc/crontab S
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.