Question

Using a Linux command-line interpreter, show the screenshots for executing the following commands: (1) display the...

  1. Using a Linux command-line interpreter, show the screenshots for executing the following commands: (1) display the current working directory, (2) list the contents of a directory, (3) change directory, (4) create a directory, (5) clear the screen, (6) copy a file from a directory into another directory, (7) delete a directory, (8) delete a file, (9) report information for a single process or set of processes, and (10) report a real-time statistics for current processes.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

(1) display the current working directory - pwd,


(2) list the contents of a directory - ls,


(3) change directory - cd <'Destination Directory'>
EX. cd Test2,


(4) create a directory mkdir <'New Directory Name'>
EX. mkdir Test3,


(5) clear the screen - clear

,
(6) copy a file from a directory into another directory - cp <' source dir name'>/<'file name'> <'destination dir name'>
EX. cp Test2/test.txt Text3

,
(7) delete a directory - for empty directories -> rmdir <'Dir Name'>
EX. rmdir Test3

for non empty directories -> rm -r <'dir name'>

EX. rm -r Test2

,


(8) delete a file - rm <'file name'>
EX. rm test.txt

(9) report information for a single process or set of processes - 1>for single process -> top -p <'PID of process'>
EX. top -p 2


2> for a set of process -> top -p <'PID-1'>,<'PID-2'>,<'PID-3'>,....
EX. top -p 2,3,4

(10) report real-time statistics for current processes - top

//for any query ask in comment and if you like the answer please give upvote :)

Add a comment
Know the answer?
Add Answer to:
Using a Linux command-line interpreter, show the screenshots for executing the following commands: (1) display the...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check...

    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...

  • Using only shell commands, create a directory structure in your Linux file system to organize files...

    Using only shell commands, create a directory structure in your Linux file system to organize files for this course. An example structure may look like the following: osweb homework homework1.c homework2.java homework3.cpp labs lab1 setup.txt projects Include the following by only using shell commands: List the contents of a directory Write data to a text file Print the contents of a text file to the terminal Delete a text file Move a text file to a different directory Rename a...

  • Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following...

    Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following tasks based on the Linux Fundamentals lecture. For this lab, take screenshots for all major steps completed to illustrate that each task was successfully completed the same method as would be used for other labs). Tasks: 1. Create a new user named Billy Bob using the command linter face 2. Add Billy Bob to the sudoers group 3. Update and upgrade your Linux distribution...

  • Manipulate directory structures in Unix/Linux Use the OS that you set up from Question 1. Assume...

    Manipulate directory structures in Unix/Linux Use the OS that you set up from Question 1. Assume you are started at your home directory. Perform a command that displays the absolute path of your home directory (your current location). Create a new directory inside your home directory and name it “Assignment-3” Without moving into the directory you just made (staying in your home directory), create two new directories using one command inside of the Assignment-3 directory, and name them Test1 and...

  • do numbers 4-8 4. Given any directory, use the Is command to display: • all files...

    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...

  • 4. (15%) Show the commands you would use change the current working directory from student’s home...

    4. (15%) Show the commands you would use change the current working directory from student’s home directory: /home/student to the student’s apache web directory:/var/www/student using: a. (5%) A series of relative commands b. (5%) A single relative command c. (5%) A single absolute command 5. (20%) Suppose you are presently in the /home/student folder and you wish to copy a file (file3.jpg) from the /home/seed/pics directory to your current directory. Provide two sets of copy commands to accomplish your goal:...

  • Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows....

    Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows. UNIX, or any other system that you like) for: creating a directory called hello world list the contents of this directory create a file called iwashere.txt display the contents of the file iwashere.txt from the command-line Please write a simple program in C for accepting a string from the command-line, reversing and printing the reversed string to standard output.

  • using lubuntu ce the following activities on your Linux virtual machine. Then complete estions. Write a script file which when executed will perform the following: First display today's date in d...

    using lubuntu ce the following activities on your Linux virtual machine. Then complete estions. Write a script file which when executed will perform the following: First display today's date in dd.mm.YYYY format (e.g. 20.04.2019). Ask user to enter a name to create a directory. Create a directory by the given directory name above. . . Ask user to enter a name to create a file. Copy the file /etc/passwd to the given filename above inside the newly created directory Copy...

  • I need help with this. 10-21. Briefly describe the following Linux commands and acronyms. ssh: telnet:...

    I need help with this. 10-21. Briefly describe the following Linux commands and acronyms. ssh: telnet: traceroute: TCP: LAN: DNS: ftp: ssh: ping: env: g++: gcc: 22. Show a command that will create a file named "etc.tar" in your home directory from recursively going through all of the files in the "/etc" directory. In other words, the "etc.tar" file will include the files in the "/etc" directory as well as all of its subdirectories. IMPORTANT: This command must work for...

  • I need help with the following Linux bash assignment: Display the value of all environment variables...

    I need help with the following Linux bash assignment: Display the value of all environment variables to the screen. Add a temporary environment variable called Semester with a value of Spring to your currently running shell only. Modify your .bashrc file to create an environment variable called CLASS with a value of "CIS 220" that is available to all processes. Modify your .bashrc file to add $HOME/scripts to your path without removing any other items from your path. Modify your...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT