Category Archives: POS 433

POS 433 Assignment Unix Linux vs Windows Security and administration (1000 Words) recent

To Buy This material Click below link

http://www.uopassignments.com/pos-433-uop/pos-433-assignment-unix-linux-vs-windows-security-and-administration-recent

POS 433 Assignment Unix Linux vs Windows Security and administration (1000 Words) recent

For more Assignments visit  http://www.uopassignments.com

POS 433 Assignment Unix/Linux vs Windows a Business Case Comparison (4000 words) recent

To Buy This material Click below link

http://www.uopassignments.com/pos-433-uop/pos-433-assignment-unix-linux-vs-windows-a-business-case-comparison-recent

POS 433 Assignment Unix/Linux vs Windows a Business Case Comparison (4000 words) recent

POS 433 Assignment Unix/Linux vs Windows a Business Case Comparison (4000 words) recent

For more Assignments visit  http://www.uopassignments.com

POS 433 Week 1 UNIX and Linux Comparison Matrix recent

To Buy This material Click below link

http://www.uopassignments.com/pos-433-uop/pos-433-week-1-unix-and-linux-comparison-matrix-recent

POS 433 Week 1 UNIX and Linux Comparison Matrix recent 

Unix® and Linux® Comparison Matrix
Name three versions of Unix
1.  HPUX
2.  AIX
3.  Solaris

Name three versions of Linux
1.  Red Hat Enterprise Linux
2.  Suse Linux Enterprise Server
3.  Ubuntu

Describe 3 major differences between Unix and Linux
1.   Licensing; Linux is all GPL, while UNIX varied between commercial and BSD license
2.   Users: Linux originally developed for home users while UNIX was developed for servers.
3.   Filesystem: Standard FS on Linux is EXT(3/4) while varies on UNIX from JFS2 to UFS2 to ZFS.
4. Linux, technically, is not an OS, UNIX is.  Linux is a kernel, surrounded by packages.

Which of the following is not a UNIX or Linux variant
a. SunOS
b. RedHat
c. DOS
d. HP-UX
e. Debian
Technically I think you want C: DOS, though I would argue that DOS is a ripoff of CP/M which itself was very much akin to UNIX.

Use the command to change directory locations.
a. cd
b. rm
c. mkdir
d. cut
A: cd

Use the command to delete a directory.
a. delete_dir
b. mkdir
c. rmdir
d. cat
C: rmdir, though this will only work if the directories are empty.  Rm –rfdir works otherwise.

Which of the following are text editors? (Choose all that apply.)
a. vi
b. emacs
c. ls
d. cat
A and B : Though why anyone would choose emacs over vi is beyond me. ls lists dirs., and cat displays a file, but you specified ‘editor’.

The command creates a directory named winchester in the root directory.
a. mkdir   /winchester
b. mkdir    ../Winchester
c. mkdir   \winchester
d. md       /Winchester
A. / specifies root, and UNIX is case sensitive.

The command allows you to change directory locations to a child directory named child1.
a. mkdir ƒ child1
b. cdƒ   ../  child1
c. cd   child1
d. cdƒ  /
C:. Obviously.

The command that deletes a file.
a. rmdir
b. cd
c. rm
d. pwd
C: The only one that is for file removal.

The command displays your present working directory.
a. cat
b. cd
c. touch
d. pwd
D: pwd.

The system directory contains the Linux kernel.
a. /boot
b. /root
c. /dev
d. /var
A: /boot, generally.

The in the vi editor allows you to save and quit the program.
a. :wq
b. q!
c. w!
d. !
A: write then quit.

The command to rename a file is .
a. mv
b. cp
c. del
d. rename
A: mv and D: rename which has been available since 2000.

The command to make a duplicate of a file.
a. mv
b. cp
c. del
d. rename
B: cp, for copy.

16. In vi, the command to change to insert mode is:
a. o
b. O
c. i
d. d
C: i.  which inputs text before the cursor and B: O works as well to insert a recentline  before current line, and A: o for recentline after current line.

17. In vi, the command to remove a character is:
a. o
b. O
c. i
d. x
D: x.

For more Assignments visit  http://www.uopassignments.com

POS 433 Week 2 Linux Directory Log recent

To Buy This material Click below link

http://www.uopassignments.com/pos-433-uop/pos-433-week-2-linux-directory-log-recent

POS 433 Week 2 Linux Directory Log recent

Here is the assignment:
1. Open a terminal and show the log how you create the following:   (5 marks)
A. Create 2 directories under your home, account1 and account2
B. Change your directory to account1
C. Create 2 directories called checking1 and savings1
D. Go to checking1 directory
E. Using touch command, create two files c1.dat and c2.dat
F. Change your directory to savings1 using relative path
G. Using touch command, create two files s1.dat and s2.dat
H. Go to your home directory
I. Change your directory to account2
J. Create 2 directories called checking2 and savings2
K. Go to checking2 directory
L. Using touch command, create two files c3.dat and c4.dat
M. Change your directory to savings2 using relative path
N. Using touch command, create two files s3.dat and s4.dat
O. Change to account1 directory

2. Show the commands for the following. (5 Marks)
(Each carries 1 mark from A to E and in each one mark, ½ is for the command and ½ for the output)
You are now in account1 directory. Copy s1.dat to this directory using relative path. Show the recent file that copied with ls command from this directory. Do not change the directory.
Ans:
Move c1.dat to savings1 directory using relative path as s1.dat. Show s1.dat with ls command from this directory. Do not change the directory.
Ans :
Change your directory to savings2 using absolute path. Show the current directory after you changed.
Ans:
Copy c2.dat to your sibling directory, checking2 using relative path (Sibling directories have same parent) (Also do not use ~ ). Show c2.dat with ls command from this directory, do not change the directory .
Ans:
E.  Move s4.dat to savings1 directory using absolute path. Show s4.dat with ls command from this directory, do not change directory
Ans:

For more Assignments visit  http://www.uopassignments.com

POS 433 Week 3 File Processing Commands Worksheet recent

To Buy This material Click below link

http://www.uopassignments.com/pos-433-uop/pos-433-week-3-file-processing-commands-worksheet-recent

POS 433 Week 3 File Processing Commands Worksheet recent

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:

2A. Why I am getting this error when I assign like this ? (1/2)
$ FIRST-NAME=smith
ksh: FIRST-NAME=smith: not found.
Ans:
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:

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 :

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:
B. ls [A-Z0-9_][A-Za-z_0-9]              – Note : there are no spaces anywhere.

Ans:
C. ls [0-9]Z[0-9]

Ans:

5. What is the command to list files in a directory: (2)

A.     Having only three alphabets:

Ans:
B.     Starting with a digit and ending with a digit

Ans:

6. There are many C programs in my directory which have an extension of .c (ex :first.c, second.cetc).
How can I concatenate all C files into one file called “myC_files (1)

Ans :

7. How do you sort first 15 lines in a file called ‘datafile” ? (1) (You need to use a pipe)
Ans:

8. How do you add a line to the end of an existing file “myfile” with date stamp. (1)
Ans :

For more Assignments visit  http://www.uopassignments.com

POS 433 Week 4 File Processing Commands Worksheet recent

To Buy This material Click below link

http://www.uopassignments.com/pos-433-uop/pos-433-week-4-file-processing-commands-worksheet-recent

POS 433 Week 4 File Processing Commands Worksheet recent

1. How do you know how many number of users currently logged into the system? (Not considering if any user is logged more than one time) (1)

A. who | uniq | sort | wc -l
B. who | cut -d’ ‘ –f1 | uniq | wc -l
C. who | sort | uniq | wc -l
D. who | cut -d’ ‘ –f1 | sort -u | wc -l
E. who | cut -d’ ‘ –f1 | uniq -d | wc -l
Ans:

2. Create a file “employees.txt” using vi editor or pico.
(The file will have 6 fields, ID, Name, Designation, Dept, D.O.B, Salary separated by pipe)
Enter these lines in the file and save it.
2133|charles smith |Manager|sales|12/12/56| 90000
9576|Rob Thomson|director |production|03/12/50|130000
5778|David Blake |General Manager|marketing |04/19/43| 85000
2765|Rick Martin|director|personnel |05/11/47|120000

(Use cut command for the following questions A,B)
(in each one mark, ½ is for the command and ½ for the output)

A. Display the person’s name, his designation and salary in the above file.
Show the command and output
Ans:

B: Display first 20 characters on each line in the above file.
Show the command and output
Ans:

3. How do you display the hour and minute from date command using cut utility (1)
Show the command and output
( ½ is for the command and ½ for the output)
Ans: 

4. What is the difference between the following commands? (1)
$ who | grep ‘mary’
and
$ who | grep ‘^mary’

Ans:

5. We know that all user information is stored in /etc/passwd where fields are delimited by a colon. Display only their userids using cut command. (userid is the first field in /etc/passwd file) Show only top 10 userids. (1)
Show the command and output
( ½ is for the command and ½ for the output)
Ans:

6. Create the following four files chapter1, chapter2, chapter3, chapter4 in your current directory and enter the following text:
Chapter1 :
This is the first line in this file
This chapter deals with the basic information of a UNIX system.
Chapter2 :
This is the first line in this file
This chapter deals with Unix System info and shell introduction.
Chapter3 :
This is the first line in this File System
This chapter deals with various Unix Systems.
Chapter4 :
This is the first line in this file
This chapter deals with kernel system.
The question is to search for a string “System” or “system” in the above files. Use wild cards in both pattern and file searching. (1)

Show the command and output
( ½ is for the command and ½ for the output)
Ans:
7. Show these commands and output:
A.  Redirect man pages of ‘find’ command to a file called, find_manpages in /tmp directory.
B.  Display lines not having the word “version” in the above file.(1)
(½ is for the command and ½ for the output)
Ans:
8. Which command of the following is correct ? (Some may work but does not make sense). (1)

a. cat file file> file3 | wc -l
b. cut -d “:” filename
c. ls -l | grepunixmyfile
d. head filename | tail
e. find name “myfile.txt” -print

9. We know that ls -l command shows all the files in the current directory. How do you display only the directories, not files in the current directory. (You have to use ls command, but not find command) (1)
Ans:
10. How do you set only read permissions to user, group and others in octal mode for a file “myfile.txt” ? (1)
Ans:

11. You observed that some of your group members are fiddling with your file  “myfile” and you wanted to remove the read permission to your group. How do you do? (1)

Ans:

12. Here is the long listing of a file.

-rw-rw-rw- 2 Y435678 odms 22 Sep 02 12:03 myfile.txt

Is the above a file or a directory? To which group does it belong? (1)

Regular file,  Y435678
file, Y435678
file, odms
directory, odms
directory, Y435678

Ans :

13. Here is another long listing of a file. (1)

-rw-r—– 1 Y435678 odms 20 Sep 02 17:03 file.txt.

What are the owner permissions?
read, execute
read, write
write, execute
all since s/he is the owner

Ans:
14. The file users_data has the following contents :  (1)
Tom  Smith       7.00  15  105.00
Rob  Sheryl       8.00 20  160.00
Ken  Bradman  7.00 13   91.00
Peter Smith      6.00 15   90.00
Dennis  Smith   8.00 13  104.00
Tom  Dave        9.00 12  108.00
How do you sort the above file and redirect the output to another file called sortedusers
Ans :
15. How do you list only duplicate lines in a file “myfile” (1)
Ans :

For more Assignments visit  http://www.uopassignments.com

POS 433 Week 5 Linux Script Worksheet recent

To Buy This material Click below link

http://www.uopassignments.com/pos-433-uop/pos-433-week-5-linux-script-worksheet-recent

POS 433 Week 5 Linux Script Worksheet recent

Linux® Script 1 (2 Marks)

Requirements
Create a recent file called week5prog1.sh with vi or pico editor.
Edit your recent file using VI and change it so it performs the following actions:
• Display the date
• Display your system information  using   “uname –a “ command
• Display your username and id using “id” command
• Display your current directory
Save the file and type your file name to execute.

Source Programs:
Insert your source code here.

$ cat week5prog1.sh

Output Results:
Insert the output here. Use a screen shot of the output with input requirements specified in the assignment. 

1. Give execute permission to the user, group only
Run the script and show the output here

Linux® Script 2 (2 Marks)

Requirements
Create a recent file called week5prog2.sh with vi or pico editor.
Edit your recent file using VI and change it so it performs the following actions:
• Display the date
• Display your system information  using   “uname –a “ command
• Display your username and id using “id” command
• Change your directory /tmp
• Display your current directory
• Search Mary in the passwd file in /etc directory
• If the search is success, display that Mary is an user in this system
• Otherwise display that Mary is not in the system
You need to use  “grep”, “if” , “else” “$?”

Linux® Script 3 (3 Marks)

Requirements
Here is the question:
Some commands like cp, mv, mkdir need arguments. Similarly this script needs only two arguments. If user enters no arguments or one argument or three or more than 3 arguments, it displays error  message like “You need to enter two arguments “  If user enters two arguments, it displays the arguments in reverse order .
Create a recent file called week5prog3.sh with vi or pico command
Edit your recent file using vi and write the script: Create a recent file called week5prog3.sh with vi or pico command.
• Display the date
• Display your system’s host name  “hostname “ command
• Display your username using system variable “USER”
• If user enters no arguments or one argument or three or more than 3 arguments, it displays error  message like “You need to enter two arguments “
• If user enters two arguments, it displays the arguments in reverse order .

Linux® Script 4 (3 Marks)

Requirements
Create a recent file called week5prog4.sh with vi or pico editor
Here is the question:
Write a program which displays 4 options to the user and asks the user to enter one option and displays the output depending on the choice. If the user enters any other character, display error message that he has to enter only a, b, c or d
a. Current date and time
b. No of users currently logged in
c. List of directories in PATH variable
d. Your login name using “LOGNAME” variable
(hint : Use the case statement and read the option with read command)

Source Programs:
Insert your source code here.
$  cat  week5prog4.sh
Output Results:
Insert the output here. Use a screen shot of the output with input requirements specified in the assignment.
1. Give execute permission to the user, group only
2. Run the script and show the output here with the following inputs each time when the scripts prompts like

1st   Run :  Enter an option :  a
2nd  Run :  Enter an option :  b
3rd  Run :  Enter an option :  c
4th  Run :  Enter an option :  d
5th  Run :  Enter an option :  x

For more Assignments visit  http://www.uopassignments.com