O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Simple Commands

In the following example, the date command was typed at the shell prompt. The shell caused this command to run and display the current system date and time to the screen. Then the shell prompt reappeared so that another command could be entered.

dtr> date
Sun Sep 19 16:00:42 PDT 1999
dtr>

Another simple UNIX command lists the files that exist:

dtr> ls
mp0095
mp0096
mp0097
mp0098
mp0099
mp0100
mp0106
mp0107
mp0107.old
mp0108
mp0109
mp4.0.1a
mp4.1.2
mp4.1.3
mp4.1.3a
mp4.1.4
dtr>

In this example, ls shows you the names of the files in the current directory. Files are just collections of text or data that you can access by name. Directories are just collections of files and other directories.

SEE ALSO

For more information on UNIX ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required