Open a text editor to create a new C file called hello.c in nano by executing the following line in a terminal window: # nano hello.c You-Probably-Knew-It-Was-Coming: Hello World If you are interested in becoming more skilled with command-line interaction, you could work through this tutorial or this online class. Man read the "manual" page for the given command Rmdir remove a directory (it must be empty first!) Mv move a file from "src" to "dest" essentially "rename a file" change to the parent of the current directoryĬat "concatenate" a file essentially "print this file to the screen" Ls list the files in the current working directoryĬd "change directory" to the given directory nameĬd. Here is a quick reference to common terminal commands on Unix-based systems (e.g., Ubuntu/Mint Linux or Mac OS X): pwd "print working directory " essentially "where am I?" Question: What is the output? If you run the command again, does the output change? Try this now:ĭO THIS: Execute the following line in your terminal window: # date Using the terminal, you will execute commands by typing them and pressing ENTER, and the system will respond with any output in the same window. The terminal functions as an intermediary between you and the computer system, allowing you to have a "conversation" of sorts with the programs on the system. DO THIS IN THE MAC LAB (ISAT 248): Press COMMAND-SPACE, type in " terminal" and press ENTER.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |