Wednesday, 12 October 2011

Basic DOS command tricks

Basically these are just simple cmd.exe commands for beginner to get started. Actually most people don't even know what is cmd and as soon as you open it, they're like 'oh no! what's this?? where is the icon, color and everything??' (the GUI stuff). But once you get used to the environment, you will find it useful especially when your computer get stuck with the heavy-beautifully-designed-colourful-GUI at the back =p


1. To open cmd
win+R > cmd


2. Manipulating directory

To change directory. (If you are unsure on the exact spelling of a folder, press TAB and use the up and down arrows to scroll through the folders that finish what you started typing.
cd c:\doc


To go up 1 level
cd ..


To list all of the directories
dir


3. New look for your cmd
Sometimes you may want to impress your girlfriend. How about a different look of cmd from everyone else??

C:\Users\angelKeshet>color y

C:\Users\angelKeshet>color 0a

Check on the list of color listed. The first number represents the background color, and the second character represents text color. Now you can play as Keanu Reeves in the The Matrix =p


4. ping
This is a famous command that allow you to check if the host you pinging is 'alive'. A simple check of your internet connection.
C:\Users\angelKeshet>ping google.ca

5. ipconfig
This command will show your IP address, gateway, DNS in use etc.
C:\Users\angelKeshet>ipconfig

6. Others
Clear screen

cls

To quit cmd
exit





No comments:

Post a Comment