Chapter 3 Linux File System tailoring
3.1linux File System tailoring Platform(1) Add a virtual hard disk (1.5 GB, SCSI interface) based on the kernel tailoring platform ). (2) install a redhat9.0 server version + Perl language environment on this hard disk (3) install vmware-tools to direct the VM's optical drive to Linux
reprint: https://www.centos.bz/2011/10/linux-file-view-edit/Cat Command IntroductionThe original meaning of the cat command is connection (concatenate), which is used to connect multiple file contents and output to the standard output stream (the standard output stream defaults to the screen). In practice, we often use it to display the contents of a
MV command is a command similar to CP, but it is not a replica/copy of a file or directory. No matter what version of Linux you're using, the MV is installed on your Linux system by default.
Usage: MV [options] ... [-t] source file destination file
Or: MV [options] ... Sou
Common commands for Linux File Management Commandsi. ls file View ls-A lists all the files under the file, including "." Hidden files at the beginningls-L List Details of the file, such as creator, creation time, file read-wr
Linux Delete Folder commandLinux Delete directory is very simple, many people are still accustomed to use rmdir, but once the directory is not empty, it fell into deep distress, now use the RM-RF command.Direct RM is available, but add two parameters-rf that is: RM-RF directory nameDelete directory, file rm (remove)Feature Description: Delete files or directories.Syntax: RM [-dfirv][--help][--version][
file system's ability to recover abnormally.
V4 supports file delegation (clients can work on local replicas until other clients request the same file), improving filesystem consistency issues.
V4 introduces a new NFS process compound that supports a compound request that contains multiple NFS processes. Increas
information;-d/path/to/home_dir: The home directory with the specified path;-S Shell: Indicates the user's default shell program, the available list is in the/etc/shells file;-G group1[,group2,... [, GROUPN]] : Specifies additional groups for the user, and the group must exist beforehand;-r: Create a System userCentOS 6:idCentOS 7:idDefault setting: In the/etc/default/useradd fileDelete User: UserdelUserdel [OPTION] ... login-r: Delete user home dire
What is the difference between the Ext3 file system and the Ext2 file system? At some point, a user writes data to a Linux system, when the system is powered down or the system core is faulty, and the data written only has inode table and DataBlock, which may cause previously written data to not be saved on disk. When the system restarts, the system may
Some common compressed files:
*. Z
Files compressed by Compress program
*.bz2
Files compressed by bzip2 program
*.gz
GZIP Program Compressed Files
*.tar
The TAR program is packed with data that has not been compressed
*.tar.gz
The TAR program packages the files, which are compressed by gzip.
*.zip
Zip Program compressed file
*.rar
RAR Progra
When I use VI in Linux to open the test. Java file
[Root @ localhost TMP] # VI test. Java
The following information is displayed:
DOS code
E325: Attention
Found a swap file by the name ". Test. java. SWP"
Owned by: Root dated: Wed dec 7 13:52:56 2011
File Name:/var/tmp/test. Java
Modified: Yes
User name: Root
[Data recovery failure description]
An IBM X3850 server, composed of 4 146G SAS hard drives RAID5 as storage media, operating system for SuSE LINUX, file system is all reiserfs.
After analysis that: the previous hard disk data organization structure: a less than 100M boot partition, followed by a 271G LVM volume, after the 2G of the swap partition. The LVM volume directly divides a ReiserFS
Fix for Linux file system error Ddrescue replace DD Recovery software backup Super blockA recently processed Linux server power outage causes the file system to not read and write, the data is not availableExample, now summarizes the Linux
In linux, everything is a file. files provide a simple and unified interface for operating system services and devices, which means that programs can use various devices as they use files. In most cases, only open, write, lseek, read, and close systems are used for file operations...
In linux, everything is a
failure), you can recover by querying the log, with the disadvantage of losing a small fraction of performance.The command fsck is used to check and repair the corrupted file system.Fsck/dev/sda2If you add the-y parameter, you are not prompted to fix it directly.By default, Fsck automatically determines the type of file system, and if the
Linux File compression and Packaging Commands
First, we need to clarify two concepts: Packaging and compression.Packaging refers to converting a large number of files or directories into a total file;Compression is to convert a large file into a small file through some compr
An application has a lot of important data, in order to be in a timely, rapid and accurate recovery of our application to a more appropriate location after the data disaster, we must regularly back up our data, we share today is the Linux file backup method.1. Manual backup of native dataWith the powerful tar command on Linux, Tar was originally designed to mak
Empty directory-P: Recursive Delete parent Empty directory-V: Show details rm-r recursively delete directory tree(1) How to create/testdir/dir1/x,/testdir/dir1/y,/testdir/dir1/x/a,/testdir/dir1/x/b,/testdir/dir1/y/a,/testdir/dir1/y/bMKDIRI–P/TESTDIR/DIR1/{X/{A,B},Y/{A,B}}(2) How to create/testdir/dir2/x,/testdir/dir2/y,/testdir/dir2/x/a,/testdir/dir2/x/bMkdir-pv/testdir/dir2/{x/{a,b},y}(3) How to create/TESTDIR/DIR3,/TESTDIR/DIR4,/TESTDIR/DIR5,/TESTDIR/DIR5/DIR6,/TESTDIR/DIR5/DIR7mkdir–p/testdi
Four Secure File Deletion tools in Linux
Any normal-level computer user knows that any data deleted from the computer system can be recovered later through some efforts. This is a good solution when you accidentally delete important data. However, in most cases, you do not want your private data to be easily restored. Whenever we delete any file, the operating sy
Swapon/dev/sda5 Mount swap partitions
Swapoff/dev/sda8 unmount the swap Partition
Swapon-a enables all swap partitions in the/etc/fstab file
Loop device:
Loopback, using software to simulate hardware implementation
Create an image file: 120 GB --> format as a swap Partition
Dd if =/etc/inittab of =/root/inittab, simulate the cp command
If =: Input File
Of =:
You may have heard or encountered something like this: a system administrator Cainiao accidentally enters quot; chmod-R777/ quot;, leading to a huge tragedy, this severely damaged the entire system. In daily management, we have many tools that can be used to back up file permissions.
You may have heard or encountered this: a system administrator Cainiao accidentally entered "chmod-R 777/", resulting in a huge tragedy and serious damage to the entire
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.