Question

In: Computer Science

1. Compare the Unix directory and the windows directory and answer the following: a. Match 3...

1. Compare the Unix directory and the windows directory and answer the following:

a. Match 3 Unix directories to a Windows directory that is similar in function. Briefly describe their similarities and differences.

b. Find a directory in Unix that appears to have no equivalent in Windows. What does it do?

c. Find a directory in Windows that appears to have no equivalent in Unix. What does it do?

Solutions

Expert Solution

  • UNIX directory or the UNIX filesystem is a one rooted tree of directories that holds data into them in the form of files and folders. On the top of all the directories, we have the root directory that is identified with "/" and "usr","home","bin" etc are the subdirectories of the root directory.
  • The main thing to note is that it follows the tree structure where if you have the permission of root then you have the entire root permission and can do anything to your file system in terms of modifying it's data and changing it's directories structure but not the reserved ones.
  • While on the other hand, we have Windows directory that too follows the hierarchical or tree structure in managing their files or information. It has the similar functionality of storing data but few changes in terms of lack of security as compared to Windows.

a) Directories that have similar functionality in UNIX and Windows:

  1. home:
    1. In Linux or UNIX, the home directory is the place where all the personal information such as Documents, Media etc are stored and it's a part of the root directory.
    2. In the Windows, the home directory is known as user directory and does the same thing for storing personal information.
  2. Desktop:
    1. In Linux or UNIX, the Desktop directory is a part of your home directory that comes after it, all the data placed on the screen when you login into your computer is stored in this directory.
    2. Same as Linux, the information that you when you boot into WIndows is stored in the Desktop directory.
  3. bin:
    1. In Linux or UNIX, the bin directory is a part of your main root directory that contains all the executable apps that are ready to run.
    2. In Windows, the bin is known as \Windows\System32 that holds the same information but in a different directory.

b) In UNIX, we have /proc directory that is missing in the Windows File System.

  1. It deals with the processes and showing them as files.

c) In Windows, we have /WinSxS as directory that is missing in the UNIX

  1. Copy of all Windows components, as well as all Windows updates and service packs is stored in this folder.

Related Solutions

UNIX/LINUX SCRIPT: Create a named directory and verify that the directory is there by listing all...
UNIX/LINUX SCRIPT: Create a named directory and verify that the directory is there by listing all its contents. Write a shell script to validate password strength. Here are a few assumptions for the password string.   Length – a minimum of 8 characters. • Contain alphabets , numbers , and @ # $ % & * symbols. • Include both the small and capital case letters. give a prompt of Y or N to try another password and displays an error...
Move the file “nfile2” into the “unix” directory. Copy the file “nfile1” into the “java” directory....
Move the file “nfile2” into the “unix” directory. Copy the file “nfile1” into the “java” directory. Show how you would create the files “test1”, “test2”, & “test3” in the “test” directory to ensure that they have the same file creation date/time. From the ~ folder, use the * and then the [ ] wildcard procedures to list all the files in the “test” directory. From the directory structure above, give an example of a relative path & an absolute path....
a) b) c) Compare and contrast systems programming in Windows as against systems programming in Unix/Linux....
a) b) c) Compare and contrast systems programming in Windows as against systems programming in Unix/Linux. CR, 8 Explain the term structured exception handling (SEH) as used in systems programming and give a practical example of how it can be used to handle errors in a block of code. AP, 7 Write a C/C++ system program to delete an unwanted file in the Windows file system. Compile and run the program and copy the source code into your answer booklet....
Windows administration answer this question for computer network To provide support to Active Directory, suggest your...
Windows administration answer this question for computer network To provide support to Active Directory, suggest your DNS strategy: Active Directory is dependent on DNS as a domain controller location mechanism and uses DNS domain naming conventions in the architecture of Active Directory domains. There are three components in the dependency of Active Directory on DNS: Domain controller locator (Locator) Active Directory domain names in DNS ● Active Directory DNS objects Internal DNS External DNS 1) What is the advantage of...
QUESTION 1 Match the following LINUX/UNIX commands with what they do. du    whereis users who...
QUESTION 1 Match the following LINUX/UNIX commands with what they do. du    whereis users who am i A. display a compact list of users currently logged in B. locate the binary, source, and manual page files for a command C. summarize disk usage D. who am i currently logged in as on the Linux server. QUESTION 2 What rm command option (flag) would you use to remove a file that begins with a - (hyphen)? -f -p --   ...
Task 1: Getting familiar with Unix commands Questions: How do you remove a directory and all...
Task 1: Getting familiar with Unix commands Questions: How do you remove a directory and all of its contents, including any subdirectories and files, without using rmdir repeatedly?         [5 Points] Go to your home directory (i.e. /home/) and enter the following command: ls -ali Explain the output. You need to clearly what each column specifies, what are the values in each column means. Also explain how it is different from: ls -li    [5 Points] How will you copy directory (not...
Demonstrate your grasp of the Unix file system by constructing a directory structure as follows: In...
Demonstrate your grasp of the Unix file system by constructing a directory structure as follows: In your home ( ~ ) directory, create a directory named “UnixCourse”. This directory will be used in the remaining assignments of this course, as well as this one. Several of the commands that you will issue in this course will examine files in this directory and, in some cases, send me a listing of those files or even copies of those files for grading...
Unix command lines. A) Assume that your current working directory is NOT the same as your...
Unix command lines. A) Assume that your current working directory is NOT the same as your home directory. Print all file and subdirectory names of your home directory into a file named file2. B) Copy the text from line 11 to line 20 of a given file input.txt and append the copied text at the end of the file output.txt. (Assume that the file input.txt contains more than 20 lines of text contents) C) Count and display the total number...
In a UNIX-like file system, a directory typically contains: A. filenames and i-nodes B. permission information,...
In a UNIX-like file system, a directory typically contains: A. filenames and i-nodes B. permission information, pointers to direct blocks C. filenames and ownership information D. filenames, i-nodes, major device numbers and minor device numbers
Unix ramdom question. How do you display a list of files in your current directory, sorted...
Unix ramdom question. How do you display a list of files in your current directory, sorted by file size with the largest files at the top.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT