0X00 Linux File directory structure
We are in the Windows environment of the file directory structure is probably several letter, C disk D disk E ... But under Linux is a tree diagram (in fact, Windows is also a tree diagram inside). Linux the next
FHS File System
/bin: Executable program storage, binary files/sbin: Commands that only administrators can executeThe program the operating system needs to run itself when it starts/sbin,/binOther
Ls
Normal file:-,fCatalog Files: DLink file (Symbolic link): LDevice files:Character Devices: CBlock Device: bNamed pipes: PSocket file: S
Linux file time stamp
Time is divided into three types: creation time,Modification Time: OpenAccess time:
Apache or Nginx have a switch default log, one is the normal access log, one is the wrong log,Directory in/www/wdlinux/nginx-1.0.15/logs/www/wdlinux/httpd-2.2.22/logsBoth logs will record all normal and abnormal access log information.and is the
So I returned to the use of Linux command line terminals, by creating multiple alias to meet the different SSH parameters, such as some need to use key, some need to use a password, and then add all the servers to a text file in a list of the way to
(PHP 5.3 and above) Please set ' request_order ' ini value to include C,g and P (recommended: ' CGP ') in php.ini ...
This should all have met, well I also met, last night hard to reload the system environment after the choice of PHP version is 5.3,
How to use awk
awk ' {pattern + action} ' {filenames}
Although the operation can be complex, the syntax is always the same, where pattern represents what AWK looks for in the data, and the action is a series of commands that are executed when the
1: Soft LinkCommand: Ln–s/etc/inittab/test/inittab.softView: Ls–l/etc/initab/test/inittab.softFound a soft connection similar to Windows shortcut,-> represents the address of a real file2: Hard LinkCommand: Ln/etc/inittab/test/inittab.hardView: Ls-l/
Modify permissions in Linux will use the chmod command, chmod----Change the access mode of one or more files (mode)
chmod [options] mode files
Only file owners or privileged users can use this feature to change file access mode. Mode can be a
First, get acquainted with the VSFTP command:
Start vsftp with the command:
1.service vsftpd Start
Restart Vsftp with:
1.service vsftpd Restart
Add User: Useradd-m 111CN, the default is to create a user 111CN in the/home directory, if the user
This article describes how to seamlessly and smoothly upgrade Nginx from 1.6.0 to Nginx 1.6.1.# Download the latest software[Root @ idoseek ~] # Cd/usr/local/src /&&Wget http://nginx.org/download/nginx-1.6.1.tar.gz &&Tar-zxvf nginx-1.6.1.tar.gz #
Run bash scp on a system today and prompt command not found. The solution is as follows. If you need it, referAfter centos6.0 is installed, many packages are not installed because of the minimum installation. Therefore, some common commands are not
Here we use the virtual machine test in esxi virtualization to add a GB hard disk.Selinux and iptables disabled[Root @ localhost ~] # Fdisk-l # create partitions for the new hard disk without attaching them.Disk/dev/sdb: 214.7 GB, 214748364800 bytes2
File type test-E condition operator is used to test whether a file exists (including all file types and directories)If [[-e $ filename]; thenEcho "$ filename exists"FiYou can also test files of the specified type.If [[-f $ filename]; thenEcho "$
Redirection standard output> Redirects the standard output (STDOUT) of the current command to a file or descriptor.The following example stores the lscommand output to the File.txt file.Ls> file.txt> File.txt lsIf the target file does not exist, it
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service