
Concept explainers
-
In ( ~ ) directory, create a directory named “UnixCourse”.
-
Within your UnixCourse directory, create a directory named “fileAsst”. Within that fileAsst directory, create two directories, named “Empire” and “Alliance”.
Use the ls and/or tree command to check your work.
-
Within the Empire directory, you should place a copy of the file ~cs252/Assignments/fileAsst/darth.txt
Use the ls and/or tree command to check your work.
-
Within the Alliance directory, you should place a copy of the file ~cs252/Assignments/fileAsst/r2d2.txt
Use the ls and/or tree command to check your work.
-
When you have completed this much, execute the command
~cs252/bin/fileAsst-1 -
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”.
-
Execute the command
~cs252/bin/fileAsst-2

Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

- Write the command that will locate all files that are larger than 10 megabytes in size, and copy each one to the directory "/overflow".arrow_forwardThe contents of the user's Documents directory are shown by default in the Open dialog box. How can I make a different directory the one that comes up first?arrow_forwardAn "ls -l" command has described a file as "drwxrwx--x". While of the following statements about that file are true? Select all that apply. A. Anyone can list the contents of this file with an "ls" command. B. The owner can list the contents of this file with an "ls" command. C. Anyone can access files within this directory if they already know the file name. D. The group can add new files to the directory.arrow_forward
- Now create a file in your working directory called ex2.cql using the Edit-Term (or PC/MAC and scp). In this file write the command to create a table named 'Music' with the following characteristics: Attribute Type Primary Key / Cluster Key Primary Key Cluster Key Attribute Name artistName text albumName text numberSold int Non Key Column wwww Cost int Non Key Columnarrow_forwardExecute a command that will display the contents of the LotsofPeople.txt file that exists at the root of your activities disk; the output must be sorted by profession and must pause between full screens of ndınoarrow_forwardA subdirectory of the current working directory called already exists and is called top. Enter Bash commands to: Make subdirectories of top called nope and yep Make an empty file in nope called reasons.txt Make an empty file in yep called unreasons.csvarrow_forward
- Which of the following pieces of code correctly opens and closes a file? with open('my_file.txt', 'r') as f: for line in f: print(line) ### #3#3############ ####### open('my_file.txt', 'r') for line in f: print(line) f = ###################################### Of = close('my_file.txt', 'r', close_after=True) for line in f: print(line) ######################### 23####1 f = open(' my_file.txt', for line in f: print(line) close(f) 'r') ###################### ####### None of these optionsarrow_forwardWhat directory can a user be in to access a file using commands with arguments such as: $ more /etc/passwd $ more ~/Study/diary $ more ../Desk/journal $ more Desk/journalarrow_forwardYour home directory is your current directory, and you enter the command $ cd Projects You then create a file named confused. What directory will list the confused file?arrow_forward
- In termina, install the paho-mqtt module with pip using the following command: Sudo pip3 install paho-mqtt Create a new folder by the name of lab_6 and create a new python file mqtt_script_1.py In the file, TYPE the following code: import paho.mqtt.client as mqtt # The callback for when the client receives a CONNACK response from the server. def on_connect(client, userdata, flags, rc): print("Connected with result code "+str(rc)) # Subscribing in on_connect() means that if we lose the connection and # reconnect then subscriptions will be renewed. client.subscribe("etec224_mqtt_test/") # The callback for when a PUBLISH message is received from the server. def on_message(client, userdata, msg): print(msg.topic+" "+str(msg.payload)) client = mqtt.Client() client.on_connect = on_connect client.on_message = on_message client.connect("broker.emqx.io", 1883, 60) client.loop_forever() Create another file py and add the following code to it.…arrow_forwardPlease answer this ques. i am lostarrow_forwardYou can configure your shell by editing the file~/.bashrc for instance to change the value of$ PS1 and $PAth permenatrly true or falsearrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





