The Linux command line uses

Source: Internet
Author: User

Here is the main record of the use of the command line under Linux, continuous update

Tree command

Many times, we want to look at the directory structure of a folder, this time, as long as the tree can be ~, I like the following method to use the tree command

 
   
  
  1. tree -L x -d # 目录深度为x,只显示目录

How to view the definition of a struct under Linux

These two days in the learning socket, writing code, the old will forget a struct member, I generally used to grep solve. The symbol definitions under Linux are basically in the /usr/include folder, so I usually use the following commands:

 
   
  
  1. grep -r ‘struct addrinfo‘ /usr/include/*.h


From for notes (Wiz)

The Linux command line uses

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.