Question

In: Computer Science

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:

  1. 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 and diagnostic purposes. So you should not store anything unrelated to the course assignments in this ~/UnixCourse area.

  2. Within your UnixCourse directory, you should create a directory named “fileAsst”. Within that directory, you should create two directories, named “Empire” and “Alliance”.

    Use the ls command to check your work.

  3. Within the Empire directory, you should place a copy of the file ~cs252/Assignments/fileAsst/darth.txt

    Use the ls command to check your work.

  4. Within the Alliance directory, you should place a copy of the file ~cs252/Assignments/fileAsst/r2d2.txt

    Use the ls command to check your work.

  5. When you have completed this much, execute the command

    ~cs252/bin/fileAsst-1
    

    (Take note of the difference between the numeric digit 1 and the lower-case letter l in the command above. If you can’t tell the difference between these, check your web browser settings to see if you can get it to use some better fonts.)

    This will check to see if you have built the desired directory structure so far. You should repeat the above steps as necessary until this command reports success.

  6. If you have been successful so far, the fileAsst-1 command will have placed a new file somewhere in the directory structure you have built. Find it, and move it into the Empire directory, renaming the file to “emperor.dat”.

  7. Execute the command

    ~cs252/bin/fileAsst-2
    

    If all is well, you will receive the access code for completion of this assignment.

Solutions

Expert Solution

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)


Related Solutions

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
Linux Directories, File Properties, and the File System in C Understanding Unix/Linux Programming Your version of...
Linux Directories, File Properties, and the File System in C Understanding Unix/Linux Programming Your version of mv command The mv command is more than just a wrapper around the rename system call. Write a version of mv that accepts two argument. The first argument must be the name of a file, and the second argument may be the name of a file or the name of a directory. If the destination is the name of a directory, then mv moves...
What are System calls. Provide 6 file and directory system calls
What are System calls. Provide 6 file and directory system calls
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.
Create a file named work.sh in your hw5 directory. Give this file read and write permission...
Create a file named work.sh in your hw5 directory. Give this file read and write permission (no execute permissions) for you alone. No other account should have any access privileges to this file. Change the permissions on the work.sh file so you have read and write permissions. Give everybody else, including the group, read permissions only. Give yourself read, write and execute permissions to the file work.sh. Give everyone else, including the group, execute permissions only. Create a directory named...
Go to your “Documents” directory; a) Create a file “file1” with the text “hello” in it;...
Go to your “Documents” directory; a) Create a file “file1” with the text “hello” in it; Provide command and screenshot. b) Create a hard link named “file2” linked to “file1”; c) Create a soft link named “soft1” linked to “file1”; create another soft link named “soft2” linked to “file2”. d) View information of the 4 files (what command should you use to produce output) – how do you verify which file is a hard link and which file is a...
You first needs to create a file called “myJS.js” in your project directory. Then, include the...
You first needs to create a file called “myJS.js” in your project directory. Then, include the AngularJS library and myJS.js in the header of the index.html page. Now, you need to define your angular application and a controller in this file such that the controller has the following variables with these initial values: name = "Alex Cool"; faculty= "Faculty of Busienss and IT"; university = {name:"University of Ontario Institute of Technology", url:"http://www.uoit.ca"}; contacts = {email:"[email protected]", phone:"xxx-xxx-xxxx"}; skills = [ {name:...
PYTHON - You are given a data.csv file in the /root/customers/ directory containing information about your...
PYTHON - You are given a data.csv file in the /root/customers/ directory containing information about your customers. It has the following columns: ID,NAME,CITY,COUNTRY,CPERSON,EMPLCNT,CONTRCNT,CONTRCOST where ID: Unique id of the customer NAME: Official customer company name CITY: Location city name COUNTRY: Location country name CPERSON: Email of the customer company contact person EMPLCNT: Customer company employees number CONTRCNT: Number of contracts signed with the customer CONTRCOST: Total amount of money paid by customer (float in format dollars.cents) Read and analyze the...
Organizational Unit diagram Active Directory: Design an OU Structure for your company. You should have at...
Organizational Unit diagram Active Directory: Design an OU Structure for your company. You should have at least 4 separate IT Sub-groups that will need to be delegated access to their own OU sub-structures. Plan for separating Users, Computers, Groups, and resources like Printers. Also plan to have a separated Privileged IT Accounts section. You also have a Helpdesk Group. Plan for appropriate rights for them. They will need to reset User Passwords. A diagram of the OU hierarchy A list...
Explain the file system structure of a standard SD card. What is an SD Card?
Explain the file system structure of a standard SD card. What is an SD Card?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT