Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART 1: Explore log in and log out scripts: Review the following files and note their existence. Look for the hidden files in a couple

PART 1: Explore log in and log out scripts:

  • Review the following files and note their existence. Look for the hidden files in a couple of different users home directories, These files may or not not be there, but you could create these files for standard login and logout behaviors :
    • /etc/profile
    • ~/.bash_profile
    • ~/.bash_login
    • ~/.profile
    • ~/.bashrc
    • ~/.bash_logout
  • Create the .bashrc file using cat > .bashrc
    • enter alias ll="ls -aliR" and then enter a blank line and [CTL+d]
  • Log out of the general.asu.edu and then log back in. Try entering ll at the command line.
  • HAND-IN PART 1: Submit a screen shot of the contents of your ".bashrc" (cat .bashrc)

PART 2: Experiment with data files:

  • Create a file named IFT250 using the vi editor that contains the following names (single spaced):

Lauer, Betty

Johnson, Ray

Jordan, Robert

Stevens, Dave

Popham, John

Linde, Michael

Wilson, Matt

Buck, Frank

Hebert, Dan

Singleton, Jillian

Edwards, Dan

Howard, Chuck

Ferrelli, Marc

Canizares, Juan

Lauer, Caitlin

Huynh, Dat

Mahue, Richard

Lauer, Tim

Logan, Bonnie

Mangan, James

Muhany, Dana

Tessier, Albert

Padcheve, Will

Sluckis, Paul

Lauer, Jim

  • Once the file is complete, return to the shell's command line and enter the following commands and review their results:
    • man sort
    • cat IFT250 | sort | pr d | less
    • HAND-IN PART 2A: Submit a screen shot of the above command and output
    • sort IFT250 > sorted
    • more sorted
    • sort IFT250 >> sorted NOTE: view sorted
    • HAND-IN PART 2B: Submit a screen shot of the above command and output
    • mailx bjlauer < sorted
    • cat sorted | tr u U | sort r | nl > IFT250.dups NOTE: view IFT250.dups
    • HAND-IN PART 2C: Submit a screen shot of the above command and output
    • cat IFT250.dups | tr U u | tee IFT250.dups2 | less NOTE: view IFT250.dups2
    • HAND-IN PART 2D: Submit a screen shot of the above command and output

PART 3: Experiment with your shell prompt and custom commands:

  • echo $PS1
  • PS1=BNC%
  • PS1=[ \u @ \h \W] #
  • alias mf=mount t msdos /dev/fd0 /mnt/floppy
  • alias
  • man history
  • history
  • history > scriptname
  • HAND-IN PART 3: Submit a screen shot of the above history command and output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions