Mac Terminal command line grooming

Source: Internet
Author: User

Directory Operations

Command name Description Example
Cd Switch to the specified directory CD test
Ls View all files in this directory Ls/users/zourong/projects/test
Pwd Displays the path name of the current directory Pwd
Mkdir Create a new directory mkdir test
RmDir Delete a directory RmDir test

File operations

td> Display the contents of the file, incomplete display
command name description Example
CP copy files or directories CP file1 file2
rm Delete files or directories RM filename
mv Modify the file name or directory mv filename1 filename2
cat Display the contents of the file cat filename
open Open file with default program open filename
more more filename
Find use matching expressions to find files Find filename
file display file types file filename

Mac terminal command-line grooming

Related Article

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.