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.
Linux/Fedora: Write the commands required for the following tasks. Try out each command on your system...
Without writing any explanations, write Linux commands to achieve the following tasks: 1) create the subdirectories with the names...alpha, beta, gamma, and delta based on the following path: ~/alpha/beta/gamma/delta 2) Move to the delta subddirectory and create the following files: a.txt, b.txt, c.txt, ... Zetxt (totally 26 files). list these files to make sure they are created. 3) Move a.txt, b.txt and cutxt to the gamma Subdirectory and list these files from within the gamma subdirectory. 4) Move to your...
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...
1. Give the command (single command or pipelined series of commands) that performs each of the following tasks. Assume bash, and the commands we have been discussing. Do not use things like perl, awk, python, etc. Unless specifically stated otherwise, assume that the command should work no matter what your current working directory is or where a user's home directory is located. Use only flags that are required by the question as stated. Assume you are logged in as a "normal" (non-administrator) user,...
LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check the output) Display the command(s) used to do the following: create an empty file called history by using just a redirection operator. Verify and show. Show/verify all results (i.e., all commands and their corresponding outputs). Wait 1 minute or more and then display the command(s) used to do the following: change the timestamp on the history file you just created. Verify/display the change. Show/verify...
Write a bash shell script to carry out each of the following tasks: What to Do: a. Safe Delete: When you use the “rm” command in Linux, it will delete the specified files, with no chance for recovering them back later. Write a script (called srm) that will safely delete the files passed to it as command-line arguments. For example, typing the command: “srm file1 file2 file3”, the script shall not actually delete these files, but instead it shall move...
COSC 3411 /ITAP 3411 Homework (UNIX Shell Commands) How would you ensure that all ordinary files created by you have rw-rw---- as default permissions? How would you sort in the background a file called "bad.txt", and place the results in a file called "sort.txt"? Archive the contents of your home directory (including any subdirectories) using tar. Compress the tar archive with gzip. Now extract their contents. Use the “find” command to locate in /docs and /usr/docs all files that Begin...
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...
There are multiple options for text editors in Linux: vi, Nano, vim, etc. My favorite is vi. Demonstrate that you are able to use a text editor. File copy, move, and removal. Try not to rely on “cd” commands. Go to your Labs directory. Use one command to finish each step, provide screenshots of commands and results.
In this hands-on project, you compile and install a program from source code. On your Fedora Linux virtual machine, switch to a graphical terminal (tty1) by pressingCtrl+Alt+F1 and log in to the GNOME desktop using the user name of user1 and the password of LNXrocks!. Open the Firefox Web browser and download the source code tarball for rdesktop 1.8.2 (rdesktop-1.8.2.tar.gz) from www.rdesktop.org. Save the source code tarball to the default location (/home/user1/Downloads) and log out of the GNOME desktop when...
On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of LNXrocks!. At the command prompt, type sleep 6000 and press Enter to start the sleep com- mand, which waits 6000 seconds in the foreground. Do you get your prompt back after you enter this command? Why? Send the process an INT signal by typing theCtrl+c key combination. At the...