Читать книгу Linux Bible - Christopher Negus - Страница 89
Running Commands
ОглавлениеThe simplest way to run a command is just to type the name of the command from a shell. From your desktop, open a Terminal window. Then enter the following command:
$ date Thu Jun 29 08:14:53 EDT 2019
Entering the date
command, with no options or arguments, causes the current day, month, date, time, time zone, and year to be displayed as just shown.
Here are a few other commands you can try:
$ pwd /home/chris $ hostname mydesktop $ ls Desktop Downloads Pictures Templates Documents Music Public Videos
The pwd
command shows your current working directory. Entering hostname
shows your computer's hostname. The ls
command lists the files and directories in your current directory. Although many commands can be run by just entering command names, it's more common to type other characters after the command to modify its behavior. The characters and words that you can type after a command are called options and arguments.