You can show them by using the "ls" command with option ls -l In Linux, every file has its restrictions, called mode bits. Now on Linux, you can't simply rename a file into "filename.exe" to attempt to execute it, as you might consider in Windows. Directing the output of "ls" to "grep" (filtering for "run") is done by using the pipe symbol: ls | grep run You use "grep" by telling the program what to filter. In order to achieve this, you can pass the output of the "ls" command to another program. Imagine, you just want to know about the files and directories containing the sequence "run". This for example shows the content of a directory, where flightgear and several other stuff is lsĭownload_and_compile_mod.sh plib-1.8.5 run_fgrun.shĭownload_and_compile_mod.sh~ plib-1.8.5.tar.gz run_fgrun.sh~ĭownload_and_compile.sh run_fgcom.sh run_js_demo.sh To show the content of a directory, use the "ls" command. On Linux, the command line is a very essential tool and it provides a lot of means to do special actions. Now this should be enough, to change to a desired directory, where commands can be executed. Otherwise the command line won't act as expected! Linux systems are case sensitive, so you have use the correct case sensitive spelling of files and directories. One last note, before we finish this thing: Notice, that cd-ing to /home/username produces the "~" sign, indicating, that you're at your home directory, as well as "cd ~" directly brings you there. To change directly to a specific directory, you may cd cd cd cd _ The directory "/" is the so called root directory - you can't go downwards from here as all directories are based here. Notice, that the "~" sign disappeared, as you went out of your personal home directory from "/home/username" to "/home". Now if you downloaded Flightgear to another place than your home directory, you can go anywhere else (remember, that "~" says you are in cd cd _ To go one directory back, you have to use "cd cd cd _ On Linux systems, you can change directories equally to the above described Windows cd cd _ On Linux systems that sign indicates, that you're in your home directory, which normally should be equal to "/home/username". Note the "~" (tilde) sign before the prompt. If your prompt is "#" instead of "$", you are logged in as root (superuser) and probably shouldn't be. Now as you've got your console window, it will say something like (especially the dollar sign) is the so called "prompt", where username should be the name of the currently logged on user and computername is the name of your computer. there's a lot of graphical console emulators! Depending on which distribution of Linux you chose and which window manager you use, you can try (all without quotation marks) "xterm", "konsole", "gnome-terminal", "gtkterm", "kterm", "xfce4-terminal". That should open a dialog box, where you can enter one single command. Gnome Applications > Accessories > TerminalĪ different approach would be pressing Alt F2.One way of getting to a console would be using the window managers menu: The most often used window managers are Gnome, KDE and Xfce. As Flightgear does only run in a graphic X-Window system, we'll use a so-called terminal. On Linux systems, there are several ways to get a command line. Any commands that appear in the forums or in a wiki can be executed directly on the command line, after you have changed into the correct directory first. That's most you'll need to know about the command line, when operating under Windows. You do the following:Įasy, isn't it? You can also change directly into subdirectories:Īnd if you got into the wrong directory somewhere, just try "cd. Now how about changing the directory? Assuming you downloaded Flightgear into the directory "Flightgear", that is located on drive D and its directory "Simulators". You can simply change drives by entering : as shown below: The blinking cursor awaits your commands. That says you're operating on drive C in directory Windows. You should see the so called prompt now, which says something like that: Type "cmd" (without quotation marks) into the field and hit Enter. As a handy shortcut to the "Run." prompt: Hold down the "Windows" key (the one with the windows flag on it) and tap the "R" key. On Windows, you can get to the command line by clicking the "Start" button and then choosing "Run.".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |