answer the questions using terminal from xubuntu Please answer all the questions
ID: 671774 • Letter: A
Question
answer the questions using terminal from xubuntu Please answer all the questions. Thank you.
1. Processes.
a. What command is to display all the processes belonging to every user?
b. Take a screenshot of the result of top command, called assg_top.png (or any other image file format).
c. Based on your screenshot of your top command, answer the following questions.
i. What is your uptime your system?
ii. What is your load average for the last 15 minutes?
iii. How much is your physical RAM being used?
d. (Nothing to answer) In your top program, press h for “Help for Interactive Commands”. You can explore different controls.
2. vim-intro. If your system does not have vim installed, you can install it by:
sudo apt-get install -y vim
vim has a built-in tutorial program, called vimtutor. Open vimtutor, complete all lessons, and answer the question of what keystroke(s) to do the following actions. Assume that we have no custom-mapped keys.
A. Lesson 1
a. Move cursor left
b. Move cursor right
c. Move cursor down
d. Move cursor up
e. Insert at cursor
f. Append at end of line
g. Exit insert mode
h. Delete character at cursor
i. Close file without saving changes
j, Save changes and close file
I HAVE POSTED THE OTHER HALF TO A DIFFERENT POST SO I CAN GET HELP REMEMBER TO ANSWER ALL QUESTIONS.
Explanation / Answer
>The ps (i.e., process status) command is used to provide information about the currently running processes, including their process identification numbers (PIDs)
>The basic syntax of ps is
ps [options]
>When ps is used without any options, it sends to standard output, which is the display monitor by default, four items of information for at least two processes currently on the system: the shell and ps.
>A shell is a program that provides the traditional, text-only user interface in Unix-like operating systems for issuing commands and interacting with the system, and it is bash by default on Linux. ps itself is a process and it dies (i.e., is terminated) as soon as its output is displayed.
lesson 1
>To save and exit, type ":wq"
>exit without saving, type ":q!"
>"x" will delete the character on which the cursor is positioned
>"Esc" key will get you out of insert mode
There are two other ways to get out of insert mode:
1)Ctrl-[
2)Ctrl-C
>"h" to move the cursor to the left
>"l" to move the cursor to the right
>"j" to move the cursor to the down
>"k" to move the cursor to the up
>"i" start insert mode at cursor
>A - append at the end of the line.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.