"View Folder Size"#/lib Directory size du-sh/lib#/lib subdirectory size du-sh/lib/* # View/lib directory normal file size Find/lib-type F |Xargs Ls-la | Awk-f ' begin{sum=0} {sum+=$5} end{printf "%d bytes\n", sum} '"Number of statistical files"# See the total number of files in the/lib directory (contains 7 file types, including the/lib directory itself) find/lib |wc-l# View the number of ordinary files in the/lib directory Find/lib-type F | The type
==> default:checking for guest additions in vm... Default:no guest additions were detected on the base b Ox for this vm! guest Default:additions is required for forwarded ports, GKFX folders, host only Default:ne Tworking, and more. If SSH fails on this machine, please install default:the guest additions and repackage the box to continue. nbsp default: Default:this isn't an error message; Everything may continue to work properly, default:in which case we ignore this message.==> default: S
Linux Server management is not as convenient as Windows Server Management, of course, Linux can also be visualized visual operation, I am accustomed to use the SSH command management operations, often encounter the site to generate a large number of garbage files distress, direct login ftp deleted, have tried to delete the whole day is deleted, FTP is also often disconnected. Below share the
virtual machine, you can see the shared directory in the 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 folder
, select "Options", click on the shared folder----always enable---add, and then proceed in sequence to OK.At this point you create the share folder below the local F drive, which is the folder shared with the virtual machine.Here is OK, you enter the virtual machine, point application-attachment-terminal, enter the Linux
Linux view the size of a folder by command:du 1 -lh The full path to the folderexample, query the size of the/var folder:du 1 -lh/ varDu recursively queries the size of all files under the path (if no parameters are present, all files within the folder are displayed, including the contents of the subfolders in the folder
to access the Linux SVN installs the repository to restrict, just like Google Code, does not need the user name password to be able to view, Even checkout source code.3. Create a svn/folder under/var/www/and create the Subversion repository in this directory:$ svnadmin Create Your_repo_name4. Enter the repository, modify the configuration file, under Your_repo_name/conf, first modify the svnserve.conf, fin
size additionDF Statistics block usageIf a process opens a large file, the large file is dropped directly by RM or MV, then du updates the statistics, DF does not update the statistics, or the space is not released. Until the process of opening the large file was killed.As a result, if you delete the file below/var/spool/clientmqueue periodically, the space is not released until you kill the process.After you kill the process using the following command, the system resumes.Fuser-u/var/spool/cli
large file is dropped directly by RM or MV, then du updates the statistics, DF does not update the statistics, or the space is not released. Until the process of opening the large file was killed.As a result, if you delete the file below/var/spool/clientmqueue periodically, the space is not released until you kill the process.After you kill the process using the following command, the system resumes.Fuser-u/var/spool/clientmqueuehttp://www.yayu.org/look.php?id=162
View the size of the
Virtual Machine: Ubuntu-12.04.4-desktop-i3861, host D: \ MyDocuments \ Downloads set to shared folder 2, open the virtual machine, select virtualbox toolbar Device rarr; install enhancements, run operations in sequence 3, enter Terminal, sudoapt-getinstallunity4, sudomodprobevboxsf/Mount v
Virtual Machine: Ubuntu-12.04.4-desktop-i386
1. The host sets D: \ My Documents \ Downloads as a shared folder.
2. Op
Article Title: connect Linux to the Windows 7 shared folder. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
A. in Windows 7, change control panel-network and internet-network and
In linux, set the ls command to display the file and folder colors. Use dircolors-p to see the default color settings, including various colors and definitions such as "bold", underline, and blinking. The $ LS_COLORS variable sets the color. For example, my settings are as follows: www.2cto.com [plain] export LS_COLORS = "no = 00: fi = 00: di = 00; 35: ln = 00; 36: pi = 40; 33: so = 00; 35: bd = 40; 33; 01:
Java garbled Chinese characters in the folder in linux
Problem description:
In linux, the default character encoding is UTF-8. in linux, files with Chinese names are stored, but garbled characters are read out in java, all of which are ?????? Then I use: new String (files [I]. getName (). getBytes ("GB2312"), "UTF-8"
default 4M, we give the 250M PE is not necessarily to it, so the system will be new to calculate the PE multiples to it, the number of display will be less than the number we write.650) this.width=650; "src=" https://s5.51cto.com/oss/201711/11/b4a28b201ce575ec0023d8ffd666d79e.jpg "style=" float: none; "title=" lvm_29.jpg "alt=" B4a28b201ce575ec0023d8ffd666d79e.jpg "/>Note:/dev/mapper/vgdata-lvdata and/dev/vgdata/lvdata are the same, pointing to the same path.See how much free space PV has. Disp
documentation;
/usr/include
Linux
/usr/lib
Store some common dynamic link shared libraries and static archives;
/usr/local
This is provided to the general user of the/usr directory, where the installation of software is most suitable;
man in Linux is a synonym for help, here is the directory where the help document
In linux, the command chmod is used to change the folder permission and change the folder permission of the file owner. when you want to use the chmod command to change the permission, add a letter to the chmod and then a file name (for example, chmoda + x) www.2cto.com. the user identity of the file mainly includes the following types: u (user...
In
DF command is Linux The system views the file system by disk partition. You can add parameters to view the remaining disk space. Command Format:DF-Hl Display format: File System capacity used available % mount pointFilesystem size used avail use % mounted on/Dev/hda2 45g 19G 24g 44%//Dev/hda1 494 M 19 m 450 m 4%/boot/Dev/hda6 4.9g 2.2g 2.5g 47%/home/Dev/hda5 9.7g 2.9g 6.4g 31%/OPTNone 1009 M 0 1009 M 0%/dev/SHM/Dev/hda3 9.7g 7.2g 2.1g 78%/usr/local/D
Linux, you can use the Chown command to modify the folder's user rights.
1. Log in to Linux with normal user A, and use Su-to switch to the root user
2. Under root user, you can see the contents of the folder
3. But unable to open git folder through file system
Pr
Delete a folder in Linux -- RM, rmdir
Deleting a directory in Linux is very simple. Many people are still used to using rmdir. However, once the directory is not empty, it is deeply worried. Now we can use the RM-RF command.You can simply use RM, but you need to add two parameters-RF: Rm-RF directory name-R is recursive down. No matter how many level
Linux FreeBSD, its du command specifies the depth of the directory layer is more simplified than Linux, the-D.Here is the code snippet:[Email protected] yayu]# du-h--max-depth=1 work/testing27M Work/testing/logs35M work/testing[Email protected] yayu]# du-h--max-depth=1 work/testing/*8.0K work/testing/func.php27M Work/testing/logs8.1M Work/testing/nohup.out8.0K work/testing/testing_c.php12K work/testing/tes
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.