Completion is a screenshot of the batch file showing all of the steps to create the file system shown below.
@echo off
rem this line will change the directory to desktop
cd "C:\Users\Administrator\Desktop\"
rem this will create directory and change to that
directory
md NOS110
cd NOS110
rem cd .. will change back to previous state
md OS
md Labs
md Homework
cd OS
md Linux
md Windows
cd Linux
md RedHat
md Win7
cd ..
cd Windows
md Ubuntu
md Win8
cd ..
cd ..
cd ..
tree /F NOS110
rem this will create file1.txt with the echo given text with given
path
echo I am in NOS 110 class > C:\Users\Administrator\Desktop\NOS110\OS\Linux\RedHat\file1.txt
echo i am in the M/W class > C:\Users\Administrator\Desktop\NOS110\OS\Windows\Win8\file2.txt
rem first we go that directory where Win7 lives and then move
the directory
cd NOS110\OS\Linux
move Win7 ..\Windows
rem ../file.php (file is in the folder that is one level higher
than the current directory)
rem ./file.php (the file is in the current folder. The same as just
file.php)
rem first we go that directory where Ubuntu lives and then move
the directory
cd NOS110\OS\Windows
move Ubuntu C:\Users\Administrator\Desktop\NOS110\OS\Linux
cd ..
cd ..
cd ..
tree /F NOS110
cd C:\Users\Administrator\Desktop\NOS110\OS\Linux\RedHat
copy file1 ..\Windows\Win7
cd C:\Users\Administrator\Desktop\NOS110\OS\Windows\Win8
move file2 C:\Users\Administrator\Desktop\NOS110\Homework
cd C:\Users\Administrator\Desktop\NOS110\OS\Linux\RedHat
rename file1 madhav.txt
cd C:\Users\Administrator\Desktop\NOS110\OS
rd /S Linux
Echo Good Job! All Task Completed
pause
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 :)
Completion is a screenshot of the batch file showing all of the steps to create the file system s...
5.Create two files also called file file1 and file2 in testdir_2 Use the ls -lR to show you created the directories 6. Change the permission of the files in the directories below and show their permissions testdir/testdir_1/file1 where owner has read and execute permissions testdir/testdir_1/file2 where where owner has read, write and execute permissions. Group has read only permissions 7. Create a directory called newdir/newdir_1/newdir_2 copy the file testdir/testdir_1/file1 to this directory Change the permisions of the file to owner,...
Create a new file and create a hard link and a symbolic link to it. Use vim or redirection to add content of the original file, then use cat and wc to examine each of the two aliases that you created. How does the result prove or disprove that either alias is a copy of the original file? In your home directory create a hard link and a symbolic link to one of the commands that you know how to...
Question: Hands-On Project 3-3 Use a Batch File A file with a bat file extension is called a batch file. Yo... Use a Batch File A file with a .bat file extension is called a batch file. You can use a batch file to execute a group of commands, sometimes called a script, from a command prompt. Do the following to learn to use a batch file: 1. Using a command prompt window, copy the files in your Documents folder...
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...
19. UNIX/Linux normally include two editors: vi and (choose the single best answer). 20. You can use thecommand to create empty a create b. make c touch d mu 21. Which command can be used to leave vi temporarily to access the command line? 22 If you execute the contents of filel are sorted and the results are stored in file2. a sort file1 -ofile2 b. sort file1 >file2 c sort filel -d file2 d sort filel filez field or...
Login to Suse Linux as root. Complete the task working as the root user. 1. What is your current directory. What did you enter at the command prompt to determine your current working directory? 2. Change directories if needed to find your foods (or food) file. Use vi to make the file contain 10 food items. Save your file and quit. Use the cat command, and option, and the argument food to display the food file with numbered lines. Use...
[2] What happens when you try to create a hard link to a directory? [2] Create a new directory. In the new directory, create a new file. In the new directory, create a symbolic link to the new file with its relative path. Test that the link is really working by 'cat'ing the symbolic link. Use the mv command to move the symbolic link to another directory (either the parent or a new subdirectory. Will the symbolic link still work?...
b. echo Your file has been processed c. echo l; d. cp file /tmp 36. You can use the command to start a program with an environment variable setting that is not part of your current environment. c. use d. env a. export b. set 37. The command displays a list of all environment variables defined in your current environment. c. use d. env a. export b. set he environment variable contains a list of directories on the Linux system...
do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...
Windows operating system 1. Write a simple batch file named LastName Final.bat (where LastName is your own last name), which accomplishes the following: a Disable echo output b. Clear the screen c. Welcome the user with the following message (where current Date and curent Time is the computer's current date and current time, respectfully-these values should be output using a command line command, meaning do not type in the date or time into your batch file). A sample of this...