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 ... |
Get Practical UNIX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.