Preview

POS 420 Week 3 Unix Individual Assignme

Satisfactory Essays
Open Document
Open Document
529 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
POS 420 Week 3 Unix Individual Assignme
University of Phoenix Material

File Processing Commands Worksheet – 10 Marks – Week 3

1. I am now in $HOME/sales/east directory. I want to have my login shell display me today’s date whenever I login every time by telnet.
For this, what steps I have to do? (1/2) A. $ vi .profile
Type one line : echo "Today’s date is `date`"
$ chmod +x .profile
$ . .profile

B. $ cd ../..
$ vi .profile
Type one line : echo "Today’s date is `date`"
$ export .profile
$ .profile C. $ cd $HOME
$ vi .profile
Type one line : echo "Today’s date is `date`"
$ . .profile D. $ vi ~/.profile
Type one line : echo "Today’s date is "date"
$ . .profile
Ans: C 2A. Why I am getting this error when I assign like this ? (1/2)
$ FIRST-NAME=smith ksh: FIRST-NAME=smith: not found.
Ans: between First and NAME should be _ (underscore) not – (dash)
2B. Under ksh or bash shell environments, what is the problem here ? (1/2)
$ export PATH=/usr/bin /usr/local/bin /usr/ucb/bin
Ans: There needs to be a “:” after all 3 of the bin statements 3. Executing cp temp/temp1 temp1.txt it will result in... (1/2)

A. Error since the same filename is used
B. Error since an extension is used for the second temp1
C. It will move the contents of temp1 from directory temp to temp1 of current directory and when finished it will erase the contents of temp1 of temp directory
D. It will copy temp1 from directory temp to temp1.txt of current directory

Ans : D 4. What kind of files will be matched by the following when you list by ls command: (3)
For Ex :
$ ls [a-z][0-9]
Ans : This matches any file with 2 characters, first being a lower case letter and the second being a number from 0 to 9

A. ls [0-9][a-z][0-9][A-Z] -- Note : there are no spaces anywhere.

Ans: This matches a file with 4 characters, first is a number from 0 to 9, second is a lower case letter from a-z, third is a number from 0-9, and fourth is upper case letter from A-Z.

B. ls

You May Also Find These Documents Helpful

  • Better Essays

    Mt 435 Unit 6 Assignment

    • 1125 Words
    • 5 Pages

    (01) Improved technology to increase efficiency and effectiveness throughout the plant. Without a doubt, old technology makes it harder for the manufacturing process and takes longer to get the products to the end user. A five year plan to update technology would be more cost effective and can address the technology issues on a predetermined plan over the five year term.…

    • 1125 Words
    • 5 Pages
    Better Essays
  • Better Essays

    Nt1310 Unit 4

    • 3614 Words
    • 15 Pages

    13. If the following program (myprog) is run from the command line as myprog monday tuesday wednesday thursday? What would be the output?…

    • 3614 Words
    • 15 Pages
    Better Essays
  • Powerful Essays

    Hw3 7

    • 1263 Words
    • 5 Pages

    should you do if you do not want to wait for a command to finish before…

    • 1263 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    POS 420 Week 5 UNIX Paper

    • 541 Words
    • 4 Pages

    Complete the University of Phoenix Material: File Processing Commands Worksheet located on your student website.…

    • 541 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    NVQ Assignment Unit 401

    • 3030 Words
    • 11 Pages

    The purpose of communication is to achieve common understanding or to create new or better awareness, effective communication demands that you convey your message successfully throughout the organisation. It is essential for the sender to understand the scope, and for the recipient who must understand the purpose, it is the responsibility of the communicator to ensure that the purpose is clearly identified.…

    • 3030 Words
    • 11 Pages
    Good Essays
  • Satisfactory Essays

    Positional Notation: Quiz

    • 518 Words
    • 4 Pages

    grep –E “[0-9]{3}-[0-9]{3}-[0-9]{4}” input (if you use grep without –E you will have to ‘escape’ {} like in Q1)…

    • 518 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Group Outline

    • 1323 Words
    • 6 Pages

    and time. Which FTK Imager feature allows you display the information as a date and…

    • 1323 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    lolz

    • 480 Words
    • 4 Pages

    4. What files will be matched by the following when you list by ls command: (3)…

    • 480 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    (): The parentheses aren’t true wildcards, not in a matching sense. They allow you to divide a pattern into logical sequences.…

    • 404 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Essay

    • 268 Words
    • 2 Pages

    Used on large, outdoor crime scenes. Searchers follow the first line pattern and search in the same manner as the line method. Once the first line pattern is complete, searchers realign on the other line pattern.…

    • 268 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Ftir

    • 588 Words
    • 3 Pages

    computer software to identify the “best match”. Many times this type of library search is sufficient to…

    • 588 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Design and write a description for the following event, incorporating the six critical dimensions of an event experience including anticipation, arrival, atmosphere, appetite, activity, and the amenities.…

    • 1024 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Dos Commands

    • 2623 Words
    • 11 Pages

    All DOS file names have a maximum length of 8 characters followed by an optional extension with a maximum length of 3 characters.…

    • 2623 Words
    • 11 Pages
    Good Essays
  • Powerful Essays

    Nadarajan, K., and Zukarnain, Z. A. (2008). Analysis of string matching compression algorithm. Journal of Computer Science, 4(3), 205-210.…

    • 7853 Words
    • 32 Pages
    Powerful Essays
  • Good Essays

    Review

    • 600 Words
    • 3 Pages

    The researchers have selected the Boyer-Moore string matching algorithm because it is used in most software applications. Usually, it is used for searching and replacingtext in a text editor or word processing application.It is known for its efficiency. [WWW_003]. One of the many text editors that use this algorithm is the Subpad. It is a notepad with cloned features of Windows notepad. It is made faster by this algorithm that is written in assembler.Boyer-Moore string matching algorithm is developed by Robert Boyer and J Strother Moorein their paper in 1997 [REF_001]. It is practically used in the search command of all text editors [REF_002].…

    • 600 Words
    • 3 Pages
    Good Essays