"Global (System) configuration file"/etc/crontabLinux main configuration files are in the ETC directory.CD/etcls cron*Vim crontabAccess to CRON.D (service)CD CRON.DUse the cat command to view the Sysstat file (the Cat command is a text output command under Linux, usually for viewing the contents of a file)Cat SysstatYo
Tags: linux commandsLs-list Directory Contents-A: Lists all files and directories in the current directory, including hidden files (infrequently used files)-A: Lists all files and directories under the current directory, including hidden files, but not including. and.-D: Lists only the current directory-F: List directory contents directly, do not sort by default, sort by file name-H: Displays the contents o
Tags: Linux basicsWe refer to inode blocks and block blocks as data storage areas or blocks of data, such as superblock, block blocks, inode bitmaps, etc., which are called intermediate or meta-data, because metadata changes frequently and there is a case of inconsistency with the actual data. So there is the file system log function.Ext3 File System log: First p
You may have heard or encountered something like this: A system administrator accidentally entered the "Chmod-r 777/" so that the great tragedy caused the entire system has been seriously damaged. In day-to-day management, we have a number of tools that can be used to back up file permissions, such as CP, Rsync, Etckeeper, and so on. If you use this backup tool, you really don't need to worry about changing file
All Files under Linux/root directory for each file description:
Bin: Executable file, equivalent to SYSTEM-WINDOWS32 under C drive
Boot: Store the boot file for the system
Dev: Store device files (hard drives, TTY, removable hard drives, disks, etc.)
ETC: Store configuration
The Linux shell can get the current file system mount information by looking at the/etc/mtab or/proc/mounts file, for example:Read/etc/mtab or/proc/mounts within the program, parsing strings is cumbersome, you can use the convenient functions provided by mntent:FILE *setmntent (constcharconstchar *type); struct mntent *getmntent (
, the temporary files should be deleted:$ rm/tmp/tmpfile Example 2: Write the net.i file to a floppy disk and set the number of read/write buffers.(Note: The contents of the floppy disk will be completely overwritten)$ dd if = net.i of =/dev/fd0 bs = 16384 Example 3: Copy the file sfile to the file Dfile.$ dd If=sf
that originally does not have the executable permission.Iv. Hidden properties of files1) The chattr command is used to set the file-hiding properties, chattr [parameters] File:The I parameter indicates that the file cannot be modified, and if the directory is set, only subdirectories can be modified and not re-created or deleted;A parameter indicates that only supplemental but not
value (custom user, custom group, with maximum permissions for the group), rather than the traditional group permissions setfacl-m mask::r file sets the Mask permission Tfacl can see special permissions: Flags give directory default X permissions through ACLs, directory files will not inherit the X permission base ACL cannot remove setfacl-k dir remove default ACL permissions setfacl–b file1 Clear all ACL permissions get Facl File1 | Setfacl--set-
When opening a Test.java file with VI or VIM under Linux[Email protected] tmp]# VI Test.javaThe following information appears:e325:attentionfoundaswapfilebythename " . TEST.JAVA.SWP "ownedby: rootdated:WedDec713:52:562011 filename:/var/tmp/Test.java modified:yesusername :roothostname:localhost processID:26153 (stillrunning) Whileopening file "Test.java" dated:Wed
In linux, php files cannot be replaced by the same file, but php runs normally. I recently made another php Project. I had a php file on the unit Computer. suppose it was 1.php. I went home and wrote 1.php for one night. When I arrived at the company the next day, I took the Unit 1. php overwrites the linux environment
[Data recovery fault description]
An IBM X3850 server consists of four 146 gb sas hard disks (RAID 5) as the storage medium. The operating system is suse linux, and the file system is all reiserfs.
After analysis, we learned that the original hard disk data structure is: a boot partition less than m, followed by a 271G LVM volume, followed by a 2G swap partition. A reiserfs
CP Option DescriptionSyntax: CP [option] source file or directory destination file or directoryNote: This command copies the specified source files to the destination file or copies multiple source files to the destination directory.The options for this command have the following meanings:-A This option is typically used when copying a directory. It retains links
In the svncheckout code process of virtual machine Linux, an error occurs. ldquo; rdquo; the file system suddenly becomes read-only. dms
In the svn checkout code process of virtual machine Linux, the "/" file system suddenly becomes read-only. dmsg can see that the kernel has an I/O error. Restarting the VM indicate
handle to release the space.For the name, windows is called a file handle, and Linux is called a file descriptor. The abbreviation is fd.Each process opens at least three files: standard input, standard output, and standard error output.Their corresponding file handles are: 0, 1, 2When
Under the Linux platform, there are several common compression tools: ========================================================================= 工 具 文件扩展名 描述 ------------------------------------------------------------------------- bzip2 .bz2 采用Burrows-Wheeler块排序文本压缩算法和霍夫曼编码 compress .Z 原始的Unix文件压缩工具,逐渐消失中 gzip .gz GNU压缩工具,用Lempel-Ziv编码 zip .zip Windows上PKZIP工具的Unix实现 ========================================================================= 1.bzip21)
In the svn checkout code process of virtual machine Linux, the "/" file system suddenly becomes read-only. dmsg can see that the kernel has an I/O error. Restarting the VM indicates that the disk is incorrect. Run "fsck/-y" to fix the disk error. This situation occurs several times. Sometimes the disk can be started after it is fixed, and then it cannot be started.
Re-install the VM and check the code. The
In linux, php files cannot be replaced by the same file, but php runs normally. I recently made another php Project. I had a php file on the unit Computer. suppose it was 1.php. I went home and wrote 1.php for one night. When I arrived at the company the next day, I took the Unit 1. php overwrites... Result 1. when php is executed, a blank page is displayed in th
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.