1. In an earlier assignment, you created a fileAsst directory containing several files. Give a command that will create a file named listing.dat, in your current (commandsAsst) directory, containing a...


1. In an earlier assignment, you created a fileAsst directory containing several files.<br>Give a command that will create a file named listing.dat, in your current (commandsAsst) directory, containing a list of the<br>names of all the files in your fileAsst directory.<br>The listing must not include dates, file sizes, or any information other than the names.<br>2. Someone has decided that the function sequentialInsert, declared in<br>-cs252/Assignments/commandsAsst/project/arrayops.h, should be renamed orderedInsertion. Give a command to produce<br>the altered version the header file, saving it as ~/UnixCourse/commandsAsst/arrayops.h<br>(Something to think about: Why would the same approach not work well for changing the variable name i to i0?)<br>3. Sometimes programmers propose changes to an existing software definition and need to know what other code could be affected<br>by the change.<br>Suppose that you are a programmer who has proposed a change to the C/C++ data type known as

Extracted text: 1. In an earlier assignment, you created a fileAsst directory containing several files. Give a command that will create a file named listing.dat, in your current (commandsAsst) directory, containing a list of the names of all the files in your fileAsst directory. The listing must not include dates, file sizes, or any information other than the names. 2. Someone has decided that the function sequentialInsert, declared in -cs252/Assignments/commandsAsst/project/arrayops.h, should be renamed orderedInsertion. Give a command to produce the altered version the header file, saving it as ~/UnixCourse/commandsAsst/arrayops.h (Something to think about: Why would the same approach not work well for changing the variable name i to i0?) 3. Sometimes programmers propose changes to an existing software definition and need to know what other code could be affected by the change. Suppose that you are a programmer who has proposed a change to the C/C++ data type known as "timespec". You know that there are going to be a number of files already using timespec, and you need a list of those so that you can start checking them to make sure you won't break them with your proposed change. Many of these files are header (.h) files stored in /usr/include or in one of its many subdirectories. What command can you use to list the header files in /usr/include or any directory nested within there that contain at least one mention of timespec? Your command's output should simply be a list of file paths, one per line. 4. Every time you issue a command in Linux, a new process is launched to run that command. Some of these processes end immediately upon completion of the command. Some may hang around or may spawn additional processes of their own. The command ps -Af will display a listing of all processes running on the same machine as you are. This includes processes being run by lots of other people. Part of the information shown is the name of the command that launched the process. It also will show the login name of the account that launched that process. Try it now and examine its output. One of the most common processes that you will see is sshd, the process that accepts an incoming ssh connection like the ones that you have opened for this assignment. What command would you enter to get a count of the number of sshd processes running on the machine where you are logged in?
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here