Mac OSX System, Linux, Windows command line tutorial

Source: Internet
Author: User

Mac OSX System, Linux, Windows command line tutorial


    • Mac OSX System, Linux, Windows command line tutorial

      • I. How to use each system terminal

      • Second, the function of each system command


Do something with your terminal (command line, Terminal, PowerShell).

I. How to use each system terminal
    • Mac OSX

On the Mac OSX system, you should

Press command and hold the key and tap the SPACEBAR.  
A blue "search box" pops up at the top of the screen.  
Enter "Terminal".  
Click the Terminal app and the icon for this app looks a bit like a black box.  
The terminal is open.  
Now you can see the chart of your terminal in your dock, select it right-click on the option –> Keep, so your terminal will remain in the dock.  
You have now opened your terminal and placed it in your dock so that you can quickly open it next time.

    • Linux

If you're using a Linux system, I assume you know how to open your terminal. Find apps called shell or terminal through the Menu window manager.

    • Windows

In the Windows system, we want to use the PowerShell . People often cmd.exe work together as a program called, but it's not as good as PowerShell. If you have Windows7 or more versions, do this:
Click the Start menu
In search programs and files, enter PowerShell.  
Hit Enter

Second, the function of each system command
    • Linux/mac OSX

pwd: Print the current working directory

hostname: Get the network name of my Computer

mkdir: Creating a Directory

cd: Change Directory

ls: Lists the files under the directory

rmdir: Deleting a directory

pushd: Push Directory

popd: Pop Directory

cp: Copying Files or directories

mv: Move/rename files or directories

less: View Files by page

cat: Outputs the entire file

xargs: Execution parameters

find: Finding Files

grep: Find something inside the file

man: Read the Help manual

apropos: Find what mans page is appropriate

env: Viewing the computer environment

echo: Output Some parameters

export: Set a new environment variable

exit: Exit terminal

sudoDangerous! Have super User privileges!

    • Windows

If you are using a Windows system, you should memorize the following commands:

pwd: Print the current working directory

hostname: Get the network name of my Computer

mkdir: Creating a Directory

cd: Change Directory

ls: Lists the files under the directory

rmdir: Deleting a directory

pushd: Push Directory

popd: Pop Directory

cp: Copying Files or directories

robocopy: More powerful replication

mv: Move/rename files or directories

more: View Files by page

type: Outputs the entire file

forfiles: Perform an action on a large number of files

dir -r: Finding Files

select-string: Find something inside the file

help: Read the Help manual

helpctr: Find what mans page is appropriate

echo: Output Some parameters

set: Set a new environment variable

exit: Exit terminal

runasDangerous! Have super User privileges!

+



Mac OSX System, Linux, Windows command line tutorial

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.