|
At the beginning I would like to explain the appearance of the word "command" in this publication. It reflects the same one real bad message. Saying "command" we mean a certain order, some instructions. I say "running" in the publication, I mean the program you want. Linux is not 'famous' dos. Here, everything is separate, ie, at any time, you can even remove the corresponding files on the move! However, it is difficult to use the concept of "program", which can make you uncomfortable. So, I will continue to use the term "command", but you must remember - this is not a Linux!
The method of calling an application depends on its location - global or local. I typed in the command line (console synonym):
imoteph @ debian: ~ $ mc
Linux directories to search the global uruchomieniowymi files, ie / bin, / sbin, / usr / bin, / usr / sbin. If there is a file designated by us as not difficult to guess - it is running.
But how to run a local file, such as our catalog? Simply precede the name of the character kropi and slesha - "./":
imoteph @ debian: ~ $. / "file name"
Note that the file is in quotes. You must indicate all names containing a space. Another way is to insert a space before the forward slash character - "\":
. / name \ file
The following are the basic commands, without whose work on the console is useless:
Program Description ls Displays files in specified directory, the same 'ls' will display directory bierzący imoteph @ debian: ~ $ ls cd Change directory to the specified imoteph @ debian: ~ $ cd mp3 / cp Copy a specified file to the specified path imoteph @ debian: ~ $ cp skaner.cpp / home / inch / mv Moves the specified file to the specified path can be used to change the file name imoteph @ debian: ~ $ mv skaner.cpp / home / inch imoteph @ debian: ~ $ mv skaner.cpp scanner-1.0.cpp cat displays the contents of the file imoteph @ debian: ~ $ cat skaner.cpp more to the same as' cat ', but were allowed to scroll down the text imoteph @ debian: ~ $ more skaner.cpp The less the same as' cat ', but were allowed to move on both sides imoteph @ debian: ~ $ less skaner.cpp mkdir Create a directory imoteph @ debian: ~ $ mkdir linux rm removes files imoteph @ debian: ~ $ rm skaner.cpp chmod Change access rights to the file / directory imoteph @ debian: ~ $ chmod 666 skaner.cpp chown Change owner of file / directory imoteph @ debian: ~ $ chown inch skaner.cpp passwd Sets a new password for the user Temporary logging su to another user, same 'su' means log on as root whoami Displays your user name in which we work out mount mount partyjce identified in a particular place imoteph @ debian: ~ $ mount / dev / cdrom
The above-mentioned command, the only substitute that which gives us a Linux. All, however, depends on the software installed on your system. Information on the use of the program, see the manual directly in the system man. Just type man mount, and the description appears on the screen, the syntax and information about this program. Of course, we can view "summary" option after adding the argument - help or (not necessarily occurring in each program)-h. Sometimes, simply type the name of the program and the program itself will show you how to use and, possibly, how can we get information about him! The great advantage of the system is to link individual Bash commands. This is very useful, for example if you want to view the contents of a large directory - eg / usr / bin. File names that do not fit on the screen, so not all of them. |