Linux Common View File command

Source: Internet
Author: User

There are a lot of common commands in Linux, so let's introduce some simple view commands to you today:

The first is the LS command, he simply looks at the directory does not have the ability to view the file, the opposite Cat command can be fully displayed:

9-1 is shown

650) this.width=650; "title=" 9-1.jpg "src=" http://s3.51cto.com/wyfs02/M01/72/A3/wKiom1XpiX_geI_RAAIhMFX3N_ Y222.jpg "alt=" Wkiom1xpix_gei_raaihmfx3n_y222.jpg "/>

What do we do when we look at the file and want to see the size of the file? Don't worry, Linux has a command, which is to view the command options-LH,

9-2 is shown below:

650) this.width=650; "title=" 9-4.jpg "src=" http://s3.51cto.com/wyfs02/M02/72/9F/wKioL1Xpk7_ X1-cgaaffb3na6ru194.jpg "alt=" Wkiol1xpk7_x1-cgaaffb3na6ru194.jpg "/>

To view the original state information of a file can be achieved with the STAT command:

9-3 is shown below:

650) this.width=650; "title=" 9-3.jpg "src=" http://s3.51cto.com/wyfs02/M02/72/A3/wKiom1XpjlzCzY3xAAE_ Y7-id6o218.jpg "alt=" Wkiom1xpjlzczy3xaae_y7-id6o218.jpg "/>

If you want to see the type of file, we can do it using the file command:

9-4 is shown below:

650) this.width=650; "title=" 9-5.jpg "src=" http://s3.51cto.com/wyfs02/M02/72/A3/ Wkiom1xpke6j7goeaaei3zmpk0a866.jpg "alt=" Wkiom1xpke6j7goeaaei3zmpk0a866.jpg "/>

When you are viewing a document, to switch back and forth between the current and previous paths, use the #cd – , convenient and quick , 9-5:

650) this.width=650; "title=" 9-2.jpg "src=" http://s3.51cto.com/wyfs02/M00/72/9F/ Wkiol1xplmljby77aadnj4rjb78032.jpg "alt=" Wkiol1xplmljby77aadnj4rjb78032.jpg "/>


Linux Common View File command

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.