File commands in linux

Source: Internet
Author: User

Linux Command FILE command 1 chmod is used to change the permissions of files or folders./u01 the directory of this folder has the highest permissions (readable, writable, and executable) for the owner ), the owner group and other users have the readable and executable permissions chmod 755/u01 2 chown. With this permission, the owner of the folder or file and the owner group chown-R oracle: oinstall/u01: Change the owner group of all files in the/u01 directory and Its subdirectories to oracle: oinstall 3 cp file copy command cp-R/tools/home/copy all the files in the/tools directory and Its subdirectories to 4 scp network files in the/home directory copy scp-rp 192.168.11.128: /tools/home/copy the tools/directory on the network address 192.168.11.128 to the/home/directory 5 find/etc-name * eth0 *; find the/etc directory and Its subdirectories, find the 6 locate SEARCH Command for the file containing eth0, similar to find, efficiency higher than the find command locate ifcfg-eth0 find files from the data dictionary ifcfg-eth0 7 mkdir create file directory mkdir-p/hsj/hyl/aaa/bbb create multi-level directory 8 mv/tools/home /move the folder tools to 9 rm-fr/hsj under the home Directory to delete/hsj and its subdirectories

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.