Question

PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...

PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP

You need to paste the command and the output in a word document and submit it.

Part1:

1. Log in to Linux using your user account name and password.

2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens.

3. Enter the pwd command to display your current working directory. Because you have just logged in, this should display your home directory.

4. Create a new subdirectory within your home directory using the command mkdir AB1.

5. Change to the new subdirectory you just created by entering cd AB1.

6. Create a new file named Good1 using this command: nano ABC1.

                                                Type Good world in the file and save it.

7. Enter ls -l to view a detailed file listing of the files in the AB1 subdirectory.

8.Change the name of the ABC1 file to ABC2 using this command:

mv ABC1 ABC2

9.   Use the ls command to verify that the file ABC1 is no longer there—it has been renamed as ABC2.

10. Copy the ABC2 file, making a second copy of the file in the same directory using this command: cp ABC2 ABC3

11. Enter the pwd command to check that your current working directory is still the archive subdirectory of your home directory.

13. Use the command to remove one of the files from your home directory: rm ABC3

14. List all the files in the current directory: ls

15. Change back to your home directory: cd

16. Run the pwd command and check which directory – you are currently in.

Part2:

Create a file named script24. This will be a shell script to perform the following tasks

Print the current date –date

Print the current working directory – pwd

Print the calendar for the current month – cal

Print the list of the files in the current directory -ls

Run the script.

Submit the code and output.

Homework Answers

Answer #1

Part1 -->

Part2-->

If you need more help then kindly please comment below so that I can help you more.

Thank You...

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
PART 4: Learn about commands to navigate the directory tree structure: use the ls –ali /  ...
PART 4: Learn about commands to navigate the directory tree structure: use the ls –ali /   command to review the contents of the / directory Review the Linux Filesystem Standard (FSSTD) and document the following directories’ contents / ------- |--bin |--boot               |--dev               |--etc |--home               |--lib               |--mnt               |--opt               |--root               |--sbin               |--tmp               |--usr               |--var 3. use the cd etc  OR cd /etc  to change your default directory to the etc directory 4. use the...
Lab of operating system: please use the linux server please so all the commands used and...
Lab of operating system: please use the linux server please so all the commands used and the output PROBLEM 1: Create a file and name it f1 • Cerate a directory and name it d1 • Move f1 to d1 • Create a directory and name it d2 • Move d1 to d2 • Check if d1 is inside d2 • Check if f1 is inside d1 • While your (Current Working Directory) CWD is d1, move back f1 to...
Write UNIX commands to perform the following tasks. Each task must use exactly one line of...
Write UNIX commands to perform the following tasks. Each task must use exactly one line of command. Unless stated otherwise, all files are assumed to be at your current working directory. a) (10 points) Print your current working directory into a file named file1 b) (10 points) Assume that your current working directory is NOT the same as your home directory. Print all file and subdirectory names of your home directory into a file named file2. c) (15 points) Copy...
How would I go about answering these questions In linux. Please provide the correct linux command...
How would I go about answering these questions In linux. Please provide the correct linux command needed to answer these 4 questions 5. Display total words of each file under your root directory and subdirectories. 6. Change permission of every filename ends “.py” to — write read execute, group - read execute, other - execute 7. Find every line which contains “hello” from your file system, display both file name, line number. 8. Combine files with name “p3.py”, “p31.py”, “p32.py”,...
In Linux please just type out command assuming files and directories are there Q21: display those...
In Linux please just type out command assuming files and directories are there Q21: display those line and line number do not contain “apple” from files whose name contains “file”. Q22: find all files, where file size is bigger than 100k and smaller 500k, and where filename ends with “.py” Q23: delete all directories with size larger than 10M or smaller than 1M. Q24: find out the five largest files or directories from current working directory, and output the result...
Create x empty files in a given directory (x is a number), following a naming format...
Create x empty files in a given directory (x is a number), following a naming format like this: myfile1, myfile2, etc. Ask the user to enter the first part file name and the number of files he/she wants to create. Hint: you may use the “touch” command to quickly create empty files. Take two screenshots: a) Display the source code in an editor (#4-13) b) Execute your script in the terminal, and display the command and the result (#4-14)
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of the separation is that they are not displayed by the default version of the ls command)                         a. the prefix "rc" (rc.filename)               c. the extension .cfig                         b. a dot (.) at the beginning                    d. by having the SUID bit set 2. The IP address which is reserved for local loopback (equivalent to "localhost") is:                         a. 255.255.255.0                                   c. 192.168.70.1...
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and...
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and the logrotate utility on Ubuntu Server Linux. 1. Boot your Ubuntu Server Linux virtual machine. After your Linux system has been loaded, log into tty1 using the user name of root and the password of LNXrocks!. 2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemon on Ubuntu Server Linux uses this file and what...
List a sequence of Linux commands you would execute after you successfully log on to your...
List a sequence of Linux commands you would execute after you successfully log on to your VM machine, make a directory called midterm in your home directory, create a simple C program called display.c in the newly created directory, compile the code using gcc compiler, and run the program, and finally, save the output to a text file called display.txt. Remember to briefly explain each command.
Time: 10 minutes Objective: Create, view and extract tar archives. Description:  In this activity, the student will...
Time: 10 minutes Objective: Create, view and extract tar archives. Description:  In this activity, the student will use the tar utility to create, view, and extract a tar archive and use it options to name the tar file and view files as they are being archived and extracted. 1.     Start your Linux server virtual machine and sign-on with your individual user ID.  All Activities should begin in your home directory. 2.    Create a directory by typing  mkdir Act6-1 and press Enter.  Switch to this new directory...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT