write out the appropriate commands for each step using CMD
1, Create a new file named, Work1.txt, in the directory HW1a, with the use of the ECHO
command with the following sentence
2, Copy the file Work1.txt from directory HW1a to directory HW1aa.
3, Rename the copied file Work1.txt in directory HW1aa to Work2.txt
4, Move the directory HW1aaa to the directory HW1a and rename it HW1ab
5,Move the file Work1.txt from directory HW1a to directory HW1aa
6, Copy both files Work1.txt and Work2.txt from directory HW1aa to directory HW1ab
7, Replace both files Work1.txt and Work2.txt from directory HW1aa to directory HW1ab
8, Compare the file Work1.txt in directory HW1aa with the file Work2.txt in directory HW1ab
9, Find the text “CMD” in the files in the directory HW1a and all of its subdirectories. Ignore
case and list line number of the location of the text.
10, Use the WHERE command to locate any .jpg or .jpeg file in your computer and copy one of
those .jpg/.jpeg file to the directory HW1a.
11, View the attributes of the newly copied .jpg/.jpeg file in directory HW1a.
12, Add the Read-Only attribute to the newly copied .jpg/.jpeg file in directory HW1a.
13, Compress the newly copied .jpg/.jpeg file in directory HW1a.
14, Add the Change (Write) permission to the builtin\users account to the newly copied .jpg/.jpeg
file in directory HW1a.
15, Change the ownership to the Administrator Groups for the newly copied .jpg/.jpeg file in
directory HW1a.
1)
cd HW1a
echo "hello" > Work1.txt
2)
cp Work1.txt HW1aa/
3)
cd HW1aa
mv Work1.txt Work2.txt
4)
cp -R HW1aaa/* HW1a/
mv HW1aaa HW1ab
NOTE: As per Chegg policy I am allowed to answer specific number of questions (including sub-parts) on a single post. Kindly post the remaining questions separately and I will try to answer them. Sorry for the inconvenience caused.
write out the appropriate commands for each step using CMD 1, Create a new file named,...
Open Command Prompt typing CMD command in your Search window. Change the directory from current to root (C:). Make a new directory called CIS165_Your Last Name (example: CIS165_Nossa). Within this directory, make subdirectories called Can1 and Can2. Verify the created directory and subdirectories using particular command. Under Can1 subdirectory creates three files called Jam.txt, Milk.txt and Juice.txt. Verify that you created these files using particular command. Move Jam.txt file from the Can1 subdirectory to the Can2 folder. Compare using special...
Linux/Fedora: Write the commands required for the following tasks. Try out each command on your system to ensure that it is correct: a. Make a hierarchical directory structure under /root that consists of one directory containing three subdirectories. b. Copy two files into each of the subdirectories. c. Create one more directory with three subdirectories beneath it and move files from the subdirectories containing them to the counterparts you just created. After you have completed these three steps at the...
Completion is a screenshot of the batch file showing all
of the steps to create the file system shown below.
Instructions Create a batch file clifilesystem.cmd using Notepad which performs the following steps to create the file system shown below. Also use a proper comment for each step before the command. Proof your work. Finally submit the clifilesystem.cmd file in Blackboard Figure 1. The clijfilesystem.cmd file system Work from Desktop unless using an absolute path Desktop NOS110 OS Labs Homework...
Objective : Write a C Shell script which copies all files(*.java and *.class) from your home directory to a new one, and Analyze the new directory information such as number of files, user permissions, and disk usage. Sample Output: << CS Directory Analysis >> Date: ============================================================ Current Directory: /home/tomss New Directory Created : /home/tomss/pgm01 File information Total Number of files : 22 files Directory files: 0 files Plain text files: 10 files File have read permissions: 3 files File have...
(In Linux) 1. Create a file to write to from your script and save it as “.txt”. 2. Write the following information to the file that you created in Step 1: Today's date Your full name Your student ID The name of your course What directory you are in File permissions of the file that you created that allow everyone to read, write, and execute The long list of files in your current directory, providing all items and their process...
Homework 1- Merge Files: 1. Design a class named MergeFiles 1 Three file names are passed as command-line arguments to MergeFiles as follows: java MergeFiles filel file2 mergedFile II. MergeFiles reads names stored in files file and file2 III. Merges the two list of names into a single list IV. Sorts that single list V. Ignores repetitions VI. Writes the sorted, free-of-repetitions list to a new file named mergedFile.txt VII. The names in all three files are stored as one...
Question 2 0/1 point (graded) What happens when you remove a directory using the command rm -r? You cannot remove a directory using the rm command. You permanently remove the entire directory, including all files and subdirectories. You move the entire directory to a trash folder, but it can be restored later. You get a warning message asking if you want to proceed, then you delete the directory. incorrect Answer Incorrect: Try again. Unix does not warn you before permanently...
Your mission in this programming assignment is to create a Python program that will take an input file, determine if the contents of the file contain email addresses and/or phone numbers, create an output file with any found email addresses and phone numbers, and then create an archive with the output file as its contents. Tasks Your program is to accomplish the following: ‐ Welcome the user to the program ‐ Prompt for and get an input filename, a .txt...
This assignment should give you experience in using file descriptors, open(), close(), write(), stat() and chmod(), perror(), and command line arguments. Program: Write a C++ program that will allow you to add messages to a file that has NO permissions for any user. A Unix system has many files that have sensitive information in them. Permissions help keep these files secure. Some files can be publicly read, but can not be altered by a regular user (ex.: /etc/passwd). Other files...