host.
----------------------------------------------------------------------------------
Situation Two:
Host operating system: Windows 7
Guest operating system: Oracle Linux
The same as the case. Set up a shared directory first.
Then, in the menu above the Linux virtual machine, the device-> install enhancements.
Vboxadditions appears, and then run this software
You can see the shared
host.
----------------------------------------------------------------------------------
Situation Two:
Host operating system: Windows 7
Guest operating system: Oracle Linux
The same as the case. Set up a shared directory first.
Then, in the menu above the Linux virtual machine, the device-> install enhancements.
Vboxadditions appears, and then run this software
You can see the shared
is not deletedreturn false;return true;}?>
The third recursive method was tested successfully under WinXP, which is to list the directory files very useful
Copy the Code code as follows:
!--? php
function listdir ($dir)
{
static $break =0; if ($break ++==100) exit;//control in-depth layer
static $i = -0;
if (Is_dir ($dir))//directory
{
if ($dh = Opendir ($dir))//open
{
while (($file = Readdir ($DH))!== false)
{ Br>if ((Is_dir ($dir. " /". $fil
Brief introductionThe chmod command is used to change the access rights of a Linux system file or directory, and to control the user/user group's access to a file or directory.Usage:Two usages: 1) Use the letter R (Read), W (write), X (execute) to indicate the permission type, 2) to indicate with a number, 4 for reading, 2 for writing, and 1 for execution.The user group for the face of the permissions property of the file/
command-line environment to know the Linux system in a folder and its containing the actual amount of space occupied by the file, the Linux command du can be very good to meet the requirements.I do not write all of the other uses, I think it will use the most, directly on:$ du -sh . /* 118M. /chemi4.0k ./collectionframework32m. /C Programming version fou
Tags: Pad modify root user folder RGB code style col CHMThis article for you to introduce a Linux batch setup folder 755 Web page File 644 Permissions example, I hope this tutorial can help you.Web site relocation, especially from virtual space or Windows to the Linux VPS will appear file permissions problems, usually
In Linux, check the folder size, disk space remaining (du/df), and dudf.1. Introduction
View the directory size in du, and view the disk usage in df.2. du
Disk usage(1) Basic functions Recursively view the size of all files in a folder(2) common parameters: -H,-human-readable Display dimensions in a readable manner (for example, 1 K 234 M 2G) -S,-summarize only
Preface
When installing Ubuntu, if you select the Chinese language as the system language, after the installation is complete, several file directories under the main folder of the Ubuntu system are in Chinese, so that they are only in the terminal, it is really inconvenient to input. Of course, if you select English when installing Ubuntu, there is no such problem. This blog provides a simple solution to this problem.
Implementation Principle
In fac
The Linux file directory is a tree-like directoryBin---executable fileboot--> operating system boot file, system kernel, boot informationDev-->device, device information, computer hardware equipment informationETC--System configuration DirectoryHome--Home directory, user folderRoot--Super Administrator folder with maximum permissionsLib--Dynamic link library folder
df-l View disk space size command DF-HL Viewing disk space remainingDf-h viewing the partition size for each root pathDu-sh all file sizes (including sub-file sizes) under the current folderDU-SM [Folder] Returns the total number of M in this folder du-h ftp View all file sizes under the specified folder du-h./package/compat-libstdc++-33-3.2.3-69.
ObjectiveWhen installing Ubuntu, if the selected system language is Chinese, after the installation is complete, the Ubuntu system's main folder under the file directory is Chinese, so only pure terminal, the input is really inconvenient. Of course, if you install Ubuntu, the choice is English, then there is no problem. This blog post presents a simple solution to this problem.Implementation principleIn fact, this is a good understanding, when you cho
=, which is a very useful parameter! as follows, note that you can use "*" to get the size of the file's usage space.
The code is as follows:
[Root@bsso yayu]# du-h–max-depth=1 work/testing
27M Work/testing/logs
35M work/testing
[Root@bsso yayu]# du-h–max-depth=1 work/testing/*
8.0K work/testing/func.php
27M Work/testing/logs
8.1M Work/testing/nohup.out
8.0K work/testing/testing_c.php
12K work/testing/testing_func_reg.php
8.0K work/testing/testing_get.php
8.0K work/testing/testing_g.
The command required to cross-server copy is SCP.---------------------- Copy Folder ----------------------------------------------Copy the current folder Tempa to the/tmp/wang/folder of the target server 10.127.40.25 serverScp-r/tmp/tempa/ [email protected]:/tmp/wang/Where Wasadmin is the user name of the target server, execute a command prompt to enter a passwor
Replace the B folder and all the files in the a directory with the B1 folder in the A1 directory and all of its files
is a copy folder
# Assuming the fullpath of the B folder in the A directory is/aa/bb/cc/a/b # Assume that the fullpath of the
B1 folder under A1 directory
For contact and have been exposed to a period of time the Linux users, the system of the various folder name is very confusing, what etc,usr,var, and so on, most of it is also a general concept, such as USR is to store their own compiled installation software, etc is a configuration file. But in fact, a name called FHS (file system directory standard) has long defined these things for us, each directory and
instruction execution process.1 Deleting a folderDE>RM-RF filenamede>-Delete a folder instance:Rm-rf/var/log/httpd/accessThe/var/log/httpd/access directory and all files and folders under it will be deletedTo be reminded: Use this RM-RF with extreme caution, Linux does not have a recycle Bin2 Deleting filesDe>rm-f filenamede>Use RM-RF with extreme caution, Linux
Locate command. To avoid this situation, you can manually update the database by using the UpdateDB command before using locate .4.3. Whereis (WindowsThe method of the mapping of horses)the Whereis command can only be used for program name searches, and only binary files (parameter - b), man description file (parameter - m ) and the source code file (parameter- s). If the argument is omitted, all information is returned. examples of use of the Whereis command:$ whereis grep5.4. which//Everythi
The first thing to say is definitely the header file, #include The following functions are required to traverse a folder under Linux, three of which are required, and several others are optional.dir* opendir (const char * name); Failed to return null. Returns the DIR struct successfully. Note that dir is not in front of the struct, and if the compiler warningstruct dirent *readdir (struct dir* DIR); Failed
Upload and download files to the local machine in Xshell (the folder in the dbserver that has been logged on through ssh for multiple times in linux) 1. List all sh files to be copied-bash-4.1 $ ll/mysqllog/osw /*. sh-rwxr-xr-x 1 mysql 409 May 16/mysqllog/osw/topaix. sh-rwxr-xr-x 1 mysql 127 May 16/mysqllog/osw/tarupfiles. sh-rwxr-xr-x 1 mysql 556 May 16/mysqllog/osw/stopOSW. sh-rwxr-xr-x 1 mysql 1609 May 1
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.