How To Start A Console Application

Table of contents:

How To Start A Console Application
How To Start A Console Application

Video: How To Start A Console Application

Video: How To Start A Console Application
Video: How to Create Modern C# Console Applications 2024, December
Anonim

If you have the skill, you can manage a console application more efficiently than a graphical one. Such applications exist for all common operating systems, including Linux and Windows.

How to start a console application
How to start a console application

Instructions

Step 1

You can run a console application in Linux in normal and full screen mode. In the first case, this will require starting a console emulator. To do this, click on the menu button, which looks like a gear in KDE, like a palm in Gnome, and may look different in other graphical interfaces. In the menu, find the application xterm, nxterm, Konsole or similar. A console emulator with a command line will appear on the screen. If you want to run the program not on your own behalf, but on behalf of another user, enter login, then enter the name and password. To be able to run programs on your behalf again, enter logout.

Step 2

Press Ctrl + Alt + F2 to go to the full screen console. Enter your username and password and a command prompt will appear. You can go back to graphical mode by pressing Alt + F5 or Alt + F7 (depending on the distribution).

Step 3

In Windows, to launch the command line, click the Start button, find the Run item in the menu and enter the name of the executable file - cmd. A command prompt window will open. You can switch between normal and full screen mode by pressing the Ctrl + Enter key combination.

Step 4

To run a program located in any folder to which the path for launching from other folders is registered, just enter its name. If the path to the program folder is not specified, enter it in full, for example: / usr / bin / komandac: Program% 20Filesprogrammakomanda.exe

Step 5

To switch to another folder, enter the cd command, specifying the full path to this folder separated by a space. To run the program from the current folder, on Linux enter:./ komanda On Windows, enter: komanda.exe

Step 6

Console file managers provide great convenience: in Linux - Midnight Commander, in Windows - Far. In such a program, use the arrow buttons to move the pointer to a folder and press Enter to navigate to it. Move the pointer over the file and press Enter to run the file.

Recommended: