View project directory with ' ls ' command in Windows

Source: Internet
Author: User

Often the user switching between Windows and Linux may face a problem-some of the commands are different, sometimes easy to confuse, such as Windows listed in the directory of files and folders with the command "dir", but under Linux is "LS".

To solve this problem, under Linux you can use "Alias" to create aliases for using commands under Windows, such as alias dir= ' ls ', and then you can use DIR instead of the LS command.

But no "alias" command was found under Windows. But we can "create aliases" with a very simple batch script. The script reads as follows:

@echo off

Dir

Save the script as "Ls.bat" and store it in

"C:\WINDOWS\system32\" (of course you can also store the other path variable to the directory), you can use the "ls" command under WINDOWS.

Easy implementation of the LS command for normal operation under Win7

View project directory with ' ls ' command in Windows

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.