Skip to main content

Posts

Showing posts with the label Command Line

List of F1-F9 key commands for The Command Prompt

Following is the list of function key command to be used while working on command prompt. F1: / right arrow: Repeats the letters of the last command line, one by one. F2 : Displays a dialog asking user to "enter the char to copy up to" of the last command line. F3 : Repeats the last command line. F4 : Displays a dialog asking user to "enter the char to delete up to" of the last command line. F5 : Goes back one command line. F6: Enters the traditional CTRL+Z (^z) F7 : Displays a menu with the command line history. F8 : Cycles back through previous command lines (beginning with most recent). F9 : Displays a dialog asking user to enter a command number,  where 0 is for first command line entered. Alt+Enter : toggle full Screen mode. up/down: scroll thru/repeat previous entries. Esc : delete  line Note :- The buffer allows a maximum of 50 command lines. After this number is reached, the first line will be replaced in sequence.Helpful acce...

How to write a bach file or a batch job?

If your are connected with world of programming, you might have heard this word " Batch File ". A batch file is used to execute a no of operations or a list of commands one after the other often requiring no user input. A no of operations are batched in a file to be executed sequentially when we run that file. In Microsoft Windows Operating system a batch file is a file saved with .bat extension while in other operating systems like Unix and Linux it can be written as a command file shell script. Batch files are often used to load programs, run multiple processes at a time, and perform common or repetitive tasks. For example, a batch job could be used to back up many files on a computer system, process log files, run a series of calculation commands, run multiple system diagnostic processes, or any number of other things that require multiple commands to be run. A big advantage of a batch job is that it can be started at any time and left alone until t...

Basic Linux Command-line Tips and Tricks for Beginners

Here are some basic linux command tips and tricks to follow. 1.  Everything in Linux is a file including the hardware and even the directories. 2.  #  : Denotes the super(root) user 3. $  : Denotes the normal user 4.   /root : Denotes the super user’s directory /home : Denotes the normal user’s directory. 5.   Switching between Terminals $ (Symbol)   Ctrl + Alt + F1-F6 : Console login $ (Symbol) Ctrl + Alt + F7 : GUI login 6.  Use of Tab : Instead of typing the whole filename if the unique pattern for a particular file is given then the remaining characters need not be typed and can be obtained automatically using the Tab button. 7.    ~ (Tilde) : Denotes the current user’s home directory 8.    Ctrl + Z : To stop a command that is working interactively without terminating it. 9.   Ctrl + C : To stop a command that is not responding. (Cancellation). 1...

How to Hide Files or Folders Using Command Prompt

Hide Files or Folders Using Command Prompt Do you want to hide some important files? Do you want to keep some of your folders very confidential that no one can see?? Not even by Changing the View settings to "Show Hidden Files and Folders".   ??? If YES, Here is the way to Hide Files or Folders Using Command Prompt . Once the file is hidden then it won't be shown in search, can not be seen in any way. (Click on the image if it is not properly visible) Suppose you have a folder named workdata in your D: Drive and you want to hide it. So here is the procedure to be followed to hide it. SO HOW TO HIDE? Follow the simple steps: Press windowkey+R to open RUN dialog box Now type " cmd " and hit enter to open Commad Promt Window Now type " attrib +s +h D:\workdata " and hit enter. The folder "workdata" will be hidden (Now tt cannot be viewed by any search options) (To view this folder aga...

View command history and quickly repeat DOS commands

While at the MS-DOS prompt or in the Windows command line you can quickly repeat any previously entered command and view a history of commands by using the arrow keys. For example, if you previously used the cls command to clear the screen press the up arrow key to repeat that command. Continuing to press the up arrow will scroll though a listing of commands that have been previously entered.  This is a fantastic tip for users who are entering long commands, file names, or directory names. If you happen to mistype a command, pressing the up arrow and then using the left arrow to move to and correct the error can save you a lot of time.

How to view Windows command line history

If you working in Windows command line and want to see the history (all commands entered) here is how you can do that. While you are in Windows command line, press the F7 key.  Following image shows what you will see.  Pressing the up or down keys will allow you to browse through all commands and once highlighted pressing enter will perform the previous command.

What is DOS?

What is DOS? You might have heard this word a lot of times, right? DOS is Disc Operation System. It is Microsoft's first operating system. The command line screen (black screen) that you see no of times from your Windows, that command line is basically an interface to work under DOS environment. DOS was the most basic operating system. With no fancy interfaces, only a black screen and sometime blue screen you could see. All the instructions or commands are given to DOS through command prompt.  In above image you can clearly see the C prompt i.e. "C:\>". All the commands are given from such Command prompts be it C prompt C:\> or D prompt D:\> or may be E prompt E:\>. Please refer following images for few DOS commands.

Use ipconfig to get IP information

ipconfig is a DOS command to retrieve a pile of information about your network connection and IP information. You can get below information from this command :  ·          Host Name ·          Primary DNS Suffix ·          Node Type ·          IP Routing Enabled ·          WINS Proxy Enabled ·          DNS Suffix Search List ·          Connection-specific DNS Suffix ·          Network Adapter Description ·          Physical (MAC) Address ·          DHCP Enabled ·          IP Address ·    ...

Use tab to auto complete commands in the command line

While at the prompt, typing in one or more letters a file or directory name contains will auto complete the name in alphabetical order. For example, when at the C:\> prompt type the below command.                   C:\>cd p                         After the above command has been typed, instead of pressing the enter press the tab key. When you press the tab key the first directory that begins with p will be automatically typed into the command. Continuing to press the tab key will cycle through all available directories including the "Program Files" directory. This shortcut can be used any time you need to type a file name or directory in a command.

Open web page from Windows command line

Use the below start command to open a web page from the command line. For example, the below command would open the Computer Tweaks home page from the command line in your default browser.  start http://www.computertweaks.in/

Open Command Window Here

Open the Windows command line directory of any folder in Windows by holding down the Shift key on the keyboard, right-clicking on a folder , and choosing the Open command window here option from the menu that appears. Using this tip you can quickly open any folder in the Windows command line without having to use the Windows command line commands to navigate to that directory. In the picture to the right, is an example of what this menu looks like when done properly. Keep in mind, if you do not hold down the Shift key this option will not be visible.