Table of Contents

unix Keywords

Keyword "cd"

Definition

My definition of the command “cd” is that it is an abbreviation of change directory. With just the command “cd” it will, by default, change the directory to the home directory. If the command “cd src” is used then the directory will be changed (like in the demonstration). With the command “cd ..” the directory will go to the one previous the one it is currently in. (as shown in the demonstration again). Also the command cd can be used to change to directories in directories such as my example, “cd src/src/unix” which will take my directory and change it to “lab46:~/src/src/unix$”

Demonstration

lab46:~$ cd src
lab46:~/src$ cd ..
lab46:~$ cd src/src/unix
lab46:~/src/src/unix$

Keyword "pwd"

Definition

The command “pwd” means that it will show the path that the current working directory is in. The directory path to the home directory, for me, is “/home/mfaucet2”. As the command “cd” is used the pwd output is either longer or shorter.

Demonstration

Demonstration of the chosen keyword.

lab46:~$ pwd
/home/mfaucet2
lab46:~$ cd src
lab46:~/src$ pwd
/home/mfaucet2/src
lab46:~/src$ cd /home/mfaucet2
lab46:~$ pwd
/home/mfaucet2
lab46:~$ cd ..
lab46:/home$ pwd
/home
lab46:/home$ cd ..
lab46:/$ pwd
/
lab46:/$

Keyword "mv"

Definition

The “mv” command is just a sorter way to say move. The “mv” command has two functions; One function is to move the command (obviously). The second function is to rename the file/directory/archive/what-ever. A way that I found to use the “mv” command is the following: mv “filename” -t (I think “-t” is “to”) “new filename or new directory location” and voila the file is moved.

Demonstration

Demonstration of the chosen keyword.

lab46:~$ ls
Maildir          badname         file.txt.gz  shell
archive1.tar.gz  badname.tar.gz  lab2         src
archive2.zip     courses.html    lyrics.mp3   src.bak
archives         **example.txt**     public_html  the answer.txt
lab46:~$ mv example.txt example1.txt
lab46:~$ ls
Maildir          badname         file.txt.gz  shell
archive1.tar.gz  badname.tar.gz  lab2         src
archive2.zip     courses.html    lyrics.mp3   src.bak
archives         **example1.txt**    public_html  the answer.txt
lab46:~$ mv example1.txt -t src
lab46:~$ ls
Maildir          archives        courses.html  lyrics.mp3   src
archive1.tar.gz  badname         file.txt.gz   public_html  src.bak
archive2.zip     badname.tar.gz  lab2          shell        the answer.txt
lab46:~$ cd src
lab46:~/src$ ls
**example1.txt**  src
lab46:~/src$

Keyword "touch"

Definition

“touch” isn't touching a file or directory or archive. The command “touch” is how files are created. Using the “touch” command can be used to create 1 - x amount of files all in the same command.

Demonstration

Demonstration of the chosen keyword.

lab46:~/messaround$ touch example.txt
lab46:~/messaround$ ls
example.txt
lab46:~/messaround$ touch example1.txt example2.txt example3.txt
lab46:~/messaround$ ls
example.txt  example1.txt  example2.txt  example3.txt
lab46:~/messaround$

Keyword "motd"

Definition

“motd” is the message of the day. It is displayed after the user logs in or after using the command “motd”.

Demonstration

lab46:~$ motd
 __         _     _ _   __   . . . . . . . . . . . . . . . . . . . . . . . . .
|  |   __ _| |__ / | |_/ /   . Basic System Usage:  Type 'usage' at prompt   .
|  |__/ _` | '_ \\_  _/ _ \  . Events and News:     Type 'news' at prompt    .
|_____\__,_|_.__/  |_|\___/  . Broken E-mail?       Type 'fixmail' at prompt .
---------------------------  . Check Lab46 Mail:    Type 'alpine' at prompt  .
c o r n i n g - c c . e d u  . . . . . . . . . . . . . . . . . . . . . . . . .

 Lab46 is the Computer & Information Science Department's Student Development
 Server for Computer-related coursework, projects, and exploration.  For more
 information, please check out:
  .. .  .    .        .                .                .        .    .  . ..
 .  Lab46 Web Page:       http://lab46.corning-cc.edu/                       .
 .  Lab46 Help Form:      http://lab46.corning-cc.edu/help_request           .
 .  Help E-mail:          haas@corning-cc.edu or wedge@lab46.corning-cc.edu  .
  .. .  .    .        .                .                .        .    .  . ..
lab46:~$

Keyword "ctrl a + d"

Definition

Another way to logout, or exiting a screen.

Demonstration

Demonstration of the chosen keyword.

lab46:~$ screen -r
[detached from 23478.pts-5.lab46]
lab46:~$
lab46:~$ logout

The above is what it shown in a split second after pressing “ctrl a + d”

Keyword "screen"

Definition

A simple way to enter a irssi chat after setting one up.

Demonstration

Demonstration of the chosen keyword.

lab46:~$ screen -ls
There is a screen on:
        23478.pts-5.lab46       (01/24/2012 12:43:26 PM)        (Detached)
1 Socket in /var/run/screen/S-mfaucet2.

lab46:~$ screen -r 23478
[detached from 23478.pts-5.lab46]
lab46:~$ screen -ls
There is a screen on:
        23478.pts-5.lab46       (01/24/2012 12:43:26 PM)        (Detached)
1 Socket in /var/run/screen/S-mfaucet2.

lab46:~$ screen -d
There is a screen on:
        23478.pts-5.lab46       (01/24/2012 12:43:25 PM)        (Detached)
There is no screen to be detached.
lab46:~$

Keyword "alpine"

Definition

My definition of “alpine” is the Unix mailing system.

Demonstration

  ALPINE 2.00   MAIN MENU              Folder: INBOX               14 Messages +


          ?     HELP               -  Get help using Alpine

          C     COMPOSE MESSAGE    -  Compose and send a message

          I     MESSAGE INDEX      -  View messages in current folder

          L     FOLDER LIST        -  Select a folder to view

          A     ADDRESS BOOK       -  Update address book

          S     SETUP              -  Configure Alpine Options

          Q     QUIT               -  Leave the Alpine program




                  Copyright 2006-2008 University of Washington
                    [Folder "INBOX" opened with 14 messages]
? Help                     P PrevCmd                 R RelNotes
O OTHER CMDS > [ListFldrs] N NextCmd                 K KBLock

unix Objective

Objective

To learn more about how Unix functions and learn the commands to help make everyday work easier.

Definition

The easiest way to find out the functions of Unix is to play around with them. Some help with work that needs to be done and other help make the experience more enjoyable. All around Unix just helps makes doing things easier.

Method

In order to help me achieve higher learning in Unix i will have to do the assignments for the Unix Fundamentals class. In order to do these I will have to be fully engaged in critical thinking and completely indulged in the work that needs to be done.

Measurement

After following my method of achieving higher learning in Unix I have now understood the most recently due assignments after learning how Unix commands work. To achieve this I did what my method said and have handed in my assignments on time.

Analysis

The keywords in the above part of the opus are commands that I have become more familiar with and are more comfortable using those commands without making a huge mess in my virtual machine, like I was when the class first started out.