Consider the following output from the jobs command: [1] 7893 Running gpass & [2] 7904 Running gnome-calculator & [3]- 7955 Running gedit fetch-stock-prices.py & [4]+ 7958 Stopped ping cyberciti.biz Give the command to convert the gnome-calculator process to a foreground process.
Q: The principle known as in access control means that each user should be given only the minimal…
A: The answer is given in the below step
Q: What does . in a pathname represent? In which type of pathname does it normally specified?
A: Represents current directory and is normally specified relative pathname
Q: You have modified the /etc/aliases file to include a new e-mail alias. However, when yousend e-mail…
A: Modifying the alias file After the modification to the file, then the command for new alterations…
Q: 1.Suppose you want to execute a shell script? Which of the permissions is NOT necessary for it to…
A: A file comes with permission too provide security. It could be read, write and execute . A process…
Q: cali duckburg mcduckcorp Figure 1: DNS name tree for Duckburg
A: The answer is
Q: Consider the following interaction with shell $ myapp -bash: myapp: command not found Further, the…
A: Third option of the question is most correct. In unix operating system, whenever we enter a command…
Q: The netstat programme, available for Linux and Windows, provides a list of active network…
A: Given: "Netstat" is a command that displays information about the network. "Network statistics" is…
Q: You are given the command with arguments provided below. After a shift command is executed in…
A: Shift is a built-in command in bash which after getting executed, shifts/move the command line…
Q: Clients are reporting slowness when attempting to access a series of load-balanced APIs that do not…
A: To use OAuth 2.0 to protect an API so that an application can access it on behalf of a user The flow…
Q: Write a simple PowerShell Script as follow:. Create a scheduled task using PowerShell. Create a…
A: In this question we have to write a PowerShell script program to execute three scripts : 1. To…
Q: A company has implemented a discretionary access control system for important documents and programs…
A: Discretionary Access Control (DAC) Discretionary Access Control (DAC) is a sort of access control…
Q: What effect does the sudo iptables --policy INPUT DROP command have on the access to computing…
A: Given:- What effect does the sudo iptables --policy INPUT DROP command have on the access to…
Q: Write code that when executed in PowerShell, will satisfy the following requirements: • List all of…
A: PowerShell commands List all of the processes on a remote computer. use invoke command with script…
Q: How can you bypass the wait function and send a user process to the background?a. This cannot happen…
A: Bypassing the wait function The wait function is used to suspend execution of the calling thread.…
Q: Which of the following statements is FALSE regarding concurrent and dis tributed computing ? Two…
A: Answer:
Q: BELOW MCQ GIVEN ANSWER CAN BE MORE THAN ONE OPTION. PLEASE PROVIDE CORRECT ANSWERS.…
A: ANSWER C
Q: Using the "at" @ command, schedule the commands below to run at 11:30pm, three days from when you…
A: Note : Expert who has answered your question and the expert picking up this question can be…
Q: You are in the process of configuring Yum package in your system. Which of the following directives…
A: RespodirIt is an absolute path to the directory where .repo files are located. Not a correct…
Q: 1. Write the command(s) needed to list all processes running on your system, showing a full set of…
A: Ans 1 The ps command can be used to display a list of currently running processes (ps means process…
Q: Question No. 1: Briefly explain the usage of following UNIX commands, also include the screen shot…
A: date command is utilized to show the framework date and time. date order is likewise used to set…
Q: Is each of the following an absolute pathname, a relative pathname, or a simple filename?
A: Multiple questions are asked so the first question will be answered. Please upload another question…
Q: Linux - Ubuntu Create a file named .db in /etc/bind/, this file will contain all the resource…
A: If your domain uses nameservers, one can add a subdomain record to the DNS zone file. Subdomains…
Q: Question 21 )Listen Given the following script called cmdargs #! /bin/bash echo "Line 1: $0, $9, and…
A: Please find the answer below :
Q: Figure 4 presents a Marketing folder for Lego Company Sdn. Bhd that is published within the DFS…
A: (a). Proposed a mechanism that can be used to ensure the communication between the main and branch…
Q: Consider the file scriptfile with the following permissions: rwxr-xr—- Who can run each of the…
A: The, given information is: USER GROUP OTHER $ source scriptfile $…
Q: do all Which of the following commands will show a list of process names along with their parent…
A: Answer: 1. a. ps -ef or b. ps -f e is optional Explanation:
Q: You wish to configure the runlevels that a particular upstart daemon is started in. Whatshould you…
A: /etc/init is the directory that contains configuration files used by upstart to start, stop, reload,…
Q: another user called "ahmad" can execute "cd Ireports" command successfully
A: Since any user can move to any directory, Since user is not modifying the file or reading the…
Q: what would the new umask value be? Files: rw-rw---- Directories: rwxrwx--x
A: UMASK in Linux or Unix systems is known as User Mask or it is also called as User file creation…
Q: using Linux/Unix, please Suppose that you want to block everyone (except you) at the main door…
A: Actually, given information: Suppose that you want to block everyone (except you) at the main door…
Q: Please write down the Linux command for each question. 17.1 What command should be used to change…
A: 17.1 What command should be used to change the read, write and execute permission of a file?…
Q: 5- Request from processes are P1=400KB, P2= 50KB, P3= 190KB and P4= OKB which one the following…
A:
Q: A fictitious command madeup reads lines of input from the console until the end-of-file (EOF)…
A: Question:
Q: Consider the below commands i) sed “s/CSH/csh/g" temp >| ls ~/newtemp 11) Is -v grep wc -I iii) Is…
A: Given:
Q: following strategies to prevent a race condition on the variable hits. The first strategy is to…
A: First Method int hits; mutex lock hit lock; hit lock.acquire(); hit lock.release(); System call is…
Q: After completing IV.2, (1) clear the kernel log buffer by invoking the command: sudo dmesg -c…
A: I have answered this question in step 2.
Q: Consider the following transcript of a sequence of commands issued at the terminal. What command…
A: CAT command is used in the blank . CAT command is used to display the contents of the file.
Q: Consider the following sequence of commands and messages: $ git clone git:cisc210/example Cloning…
A: According to the Question below the solution:
Q: Which of the following schedules are conflict serializable? S₁: r₂(A), r₁(C), r₂(B), w₂(B), r3(B),…
A: Solution :- Given schedule , S₁: r₂(A), r₁(C), r₂(B), w₂(B), r3(B), r₁(A), r3(C), w3(C), w₁(A) S₂;…
Q: Q 2: What is the difference between user level thread and kernel level thread? Given scenarios…
A: Operating system does not recognise threads at the user level while operating system recognises…
Q: What one line command accomplishes the following in Ubuntu - Linux: The output of who is passed to a…
A: who > who.out && sort < who.out > sort.out && wc < sort.out
Q: With the help of two high level algorithms which are modifications of Algorithm 1, distinguish…
A: 1. master server creates a socket and binds it to a well known address for the service being…
Q: Consider the following sample output. Do not assume that any other commands are executed between the…
A: As per the given scenario, the series of commands are need to be analyzed: $ls: It is the command…
Q: Provide an example of two daemon processes found on Linux systems. What type of service does the…
A: "Since you have asked multiple questions I am solving the first 2 for you if you want answers for a…
Q: Linux allows tasks to be scheduled and executed using cron and crontab. Crontab will utilize the job…
A: The answer is as follow
Q: To stop a process, we can use TASKKILL or WMIC, and we should always use Process ID (PID) as the…
A: Ends one or more tasks or processes. Processes can be ended by process ID or image name. You can use…
Q: Which two environment variables must you set for the script to complete successfully
A: The two environment variables that we must set up for the script to complete successfully are :…
Q: Consider the following command line and its output. username: -$ find/-name a.out -print > files…
A: The question is to find the command that kill a job. The answer is given in step 2.
Q: void assign_node_task(int sockfd, unsigned long *task_info) { // pass the task_info to the // int…
A: Answer: I have modified in code.
Q: Write a script named perm_denied that Uses a Linux /bin/bash while loop that runs once every 10…
A: Write a script named perm_denied that uses a linux/bin/bash while loop that runs once every 10…
Consider the following output from the jobs command:
[1] 7893 Running gpass &Give the command to convert the gnome-calculator process to a foreground process.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- Write a script that: Deletes all previously created directories from C:\bkp\Firefox\ Writes the amount of memory used by Firefox to a file C:\bkp\Firefox\%DATE% %TIME%\firefox.txt (%DATE% and %TIME% are current date and time) (if Firefox is running) Kills Firefox process (if it is running) Archives content of the Firefox profile directory to C:\bkp\Firefox\%DATE% %TIME%\firefox.zip Deletes the original Firefox profiles directory Shuts down the computer1. Write the command(s) needed to list all processes running on your system, showing a full set of columns and pipe that output to the less command so that you can page through the list of processes. 2. Write the command(s) needed to list all processes running on your system, sorted according to memory utilization. 3. Assume that the process gedit is running. Explain the steps and commands needed to kill this process. 4. Write the command(s) needed to start Firefox with a nice value of 5. 5. Write the command(s) needed to change the niceness of Firefox to 7. 6. Write the command(s) needed to start the service sshd.What one line command accomplishes the following in Ubuntu - Linux: The output of who is passed to a utility that both writes to its output, which is connected to sort, and at the same time, writes a copy of its input to a new file named who.out. The output from sort is passed to a utility that both writes to its output, connected to the input of a process running wc, and writes to a new file, sort.out. Finally, the wc utility outputs the number of lines, words and characters in the sorted who to the screen.
- Linux allows tasks to be scheduled and executed using cron and crontab. Crontab will utilize the job scheduler, while cron will execute the tasks. (a) Write a Linux shell script to capture all the processes run by a user named user1 as well as the current date and time before appending these information to a file named traceLog.txt. Next, move the traceLog.txt file to a directory named backup. Finally, kill all processes owned by user1 and all processes named torrent. (b) Configure the crontab to schedule the execution of the shell script in question (a) above, assuming that the shell script is located at /home/admin directory. The shell script should be executed at every two hours daily. Append the current date and time followed by the list of all users currently logged into the Linux system to a file named userLog.txt every 40 minutes. Assume that the userLog.txt file is located at /home/admin directory. Schedule a broadcast message every hour on the 28th day of each month to all…convert the following program into a shell script, including redirection of input and output, pipes, and background jobs.: #define TRUE 1 while (TRUE) /* repeat forever */ { type_prompt(); /* display prompt on the screen */ read_command(command, parameters); /* read input from terminal */ if (fork() != 0) /* fork off child process */ { /*Parent code.*/ waitpid(1, &status, 0); /* wait for child to exit */ } else { /* Child code. */ execve(command, parameters, 0); /* execute command */ } }The ps command's -e option is required to examine daemon processes, which are not associated with terminals. Is this a true or false statement?
- ps and top are two common command for managing processes. Top can only display processes, but ps can kill and renice them. Is this correct or incorrect?After completing IV.2, (1) clear the kernel log buffer by invoking the command: sudo dmesg -c (2) upload a screenshot of running the following sequence of five commands in the order given. All five commands and results should comfortably fit in a ~35-line terminal window. make sudo insmod seconds.ko cat /proc/seconds sudo rmmod seconds dmesgSuppose we run a foreground process in a shell and it's assigned PID 1234. Assume the process doesn't block or ignore SIGTERM.We hit ctrl-z. Then we run "kill 1234". What will happen? a) SIGTERM is discarded since process 1234 is stopped b) process 1234 receives SIGTERM and terminates c) the kill command fails d) SIGTERM is marked as a pending signal for process 1234
- The ps command's -e option is required to examine daemon processes, which are not associated with terminals. Could you please tell me whether this statement is true or false?Powershell 8.How can we get a list of the newest 10 event logs from the Security Logs and display only thevalues from Source and Message?9. How can we get a list of all processes, sort them by ProcessName in ascending order, and then theHandles by descending order?10. How can we get a list of aliases, group them by their definition, sort them by the count with thehigher count on top?Please write down the Linux command for each question. 17.1 What command should be used to change the read, write and execute permission of a file? 17.2 The command for a user wants to delete recursively all files and subdirectory from current directory is 17.3 What is the command which edits the scheduler for automatic command executions at background? 17.4 This command let a user check the names of the groups that this a/c belongs to. 17.5 What do we expect to see if running “$ echo `expr 2 \*3`? 17.6 Upon booting up the OS, the latest kernel initialization daemon process that the Ubuntu distribution is using today is ____ 17 Like to find files with “.sh” extensions from current local directory to all its subdirectories, what is the command? 17.8 What is the command to find the IP address of a network card? 17.9 What is usually written on the first line in shell scripts? 17.10 Like to backup all files and subdirectories under /var/www, the output file name is today.tar. The…