Mac OSX System, Linux, Windows command line tutorial
Do something with your terminal (command line, Terminal, PowerShell).
I. How to use each system terminal
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.
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.
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
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
sudo
Dangerous! Have super User privileges!
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
runas
Dangerous! Have super User privileges!
+
Mac OSX System, Linux, Windows command line tutorial