To change the title of your command prompt , use the command - Title <New Title Name>
To change the color of your command terminal , use the command - color/?
EXAMPLE
- color 0A - This will have a black background and Green Font . Here 0 corresponds to background color ( Black ) and A corresponds to text color ( Light Green )
You can also right click on title bar of command prompt and go to properties and change as you need.
We can use "tree" or "dir" command to list the files and folders in a path.
we can change directory using "cd <folder name>" command.
We can go back up a folder use "cd.." command and to go back up for multiple directory use command with slashes "cd../../.." and soon as needed.
We can use tab key for auto-complete.
To open a file in the current directory , just type the file name and press enter
To change from one drive to another , just type the drive letter followed by colon and press enter key .
EXAMPLE
- To change from c to d , type command "d:" and press enter key
To change from one drive to a particular path inside another drive , then the following command must be used.
EXAMPLE
- To change from c to an internal folder inside d , type command "cd /d <Entire File Path>" and press enter key . Here the entire file path will be something like this "d:\downloads\programs" and "/d" to change from one drive to another. Likewise to change from "D"drive to "C" drive , use command similar to the following " cd /d c:\users\deepak\desktop"
To clear the screen in command prompt type "cls" command
To search a particular file or folder in a drive , first go to the root path of the drive , for example if you are in c drive then the root directory will be "cd \" , then type the following command - dir "File/Folder Name" /s /p . Here "/s" displays files in specific directories and all its sub-directories and "/p" pauses after each screenful of information. Similarly you can search for a file , but remember while searching file enter it with extension , for example if it is text file , type "dir test.txt /s /p" and press enter to search.
A wildcard is a symbol that takes the place of an unknown character or set of characters. Commonly used wildcards are the asterisk ( * ) and the question mark ( ?
The asterisk represents any number of unknown characters.