Question

In: Computer Science

1) Open a new terminal. a) Use the runlevel command. What is the current run level...

1) Open a new terminal.
a) Use the runlevel command. What is the current run level of your system?
b) Use the command ls /usr/lib/system/system . What does this show?
c) Use the command ls /etc/rc.d. What does this show?
d) Use the command ls/etc/rc.d/init.d. What SysV daemons are available on your system?
e) Type init 3 and press Enter. The type runlevel. What is the most recent runlevel?
f) Type init 1 and press enter. Does the runlevel command show the recent level to change?
2) Describe what the /etc/inittab file does.

Solutions

Expert Solution

1.

A.) The run level command is used find the current and the previous run levels of the Unix operating system. It is a present operating state into which system is booted. The current runlevel of my system is 1 which refers to the single user mode.

B) the ls command is used to show the files or folders stored inside a directory or a folder. The result of the command - ls /usr/lib/system/system

C) all the system initaliazatiom scripts are there in this folder named etc/rc.d. The result of the command ls /etc/rc.d is

Since there were a huge number of files so I reduced to the required files only. Here the files named rc0.d rc1.d are the required scripts.

D) after running the command there were 5 daemons which are available on my system. They are - apparmor, kmod, procps, rsync.

E) the command init 3 refers to the multitasking network mode without gui. Which means it will change the current runlevel of 1 to runlevel 3. Which means multiple user mode under the command line interface without the gui.

F) init 1 refers to the single user mode and hence it will switch the current runlevel to runlevel 1 which is for single user mlde.so we can say that it will change the recent level.

2) The etc/inittab file is the configuration file which is used but the system V or we can also say as SysV initialization system in the Linux. This file contains 3 informations for the init -

a) Runlevel

B) what process to start stop and restart if terminated

C) what actions to take when enters a new runlevel

After the each entries in this file are executed and the boot process is completed then only your system will be available to log in.

Each line in the file is in the form of or can say that has four values as -

id:runlevels:action:process

Where id is the identification code, runlevel holds the value of current run level. Action values tells the init how to treat the process. And process defined the command or script to execute.


Related Solutions

Open a terminal: a) type the command ps –ef | less to view the first few...
Open a terminal: a) type the command ps –ef | less to view the first few processes running on the system. Which process has the ID of 1? b) What character do most processes have in the terminal column? What does this indicate? c) What user started the most of these processes? d) Which parent process started the most processes? e) Type ps –el | less. What character is in the state column for most processes? What does this indicate?...
Open the Command Prompt window and use the nslookup command to identify the domain names that...
Open the Command Prompt window and use the nslookup command to identify the domain names that correspond to the following IP addresses: 161.170.244.20 205.251.242.103 144.160.155.43 Use the Command Prompt window and nslookup command to identify the IP addresses that correspond to the following domain names: walmart.com amazon.com att.com Close the Command Prompt window. Submit your findings.
1. What command is used to change the current working directory at the command line?
1. What command is used to change the current working directory at the command line?
Create a python program that will: prompt a user for a command Command get_data Level 1:...
Create a python program that will: prompt a user for a command Command get_data Level 1: Take one of the commands my_max my_min my_range my_sum mean median mode fib factorize prime Requirements: Your commands should be case-insensitive You should use python lists to store data You should NOT use built-in python math functions, or math libraries to compute these values Tips: Write one function that will convert a string with comma-separated numbers into a python list with the numbers. You...
Open the terminal and using vi/vim create a new script and name it lab6 Insert at...
Open the terminal and using vi/vim create a new script and name it lab6 Insert at the top of your file a comment with your name, class and section number (e.g. #John Doe, EMT 2390L - OL123). In this lab you are going to display a multiplication table of a number entered by the user between 2 and 10 using a for loop and without using multiplication. The table will display the values that are less than or equal to...
1. At the command prompt, use the where command to locate the where.exe file. Copy and...
1. At the command prompt, use the where command to locate the where.exe file. Copy and paste the full path and filename for the where.exe file into the space provided below. 2. At the command prompt, enter the following command and press enter. find "free beer" "c:\Program Files (x86)\Notepad++\*.txt" This command searches for the string "free beer" in all .TXT files in the Notepad++ program folder. According to the output of the find command, which of the files listed below...
Run the R command y <- rchisq(1000,2). Then use your exploratory tools to identify which, if...
Run the R command y <- rchisq(1000,2). Then use your exploratory tools to identify which, if any of the following are correct. THERE ARE more than one correct answer. Group of answer choices: The distribution is unimodal. The mean would be an appropriate measure of location. The median would be an appropriate measure of location The distribution is skewed to the right The standard deviation would be an appropriate measure of spread.
Run the R command y <- rchisq(1000,2). Then use your exploratory tools to identify which, if...
Run the R command y <- rchisq(1000,2). Then use your exploratory tools to identify which, if any of the following are correct. THERE ARE more than one correct answer. Group of answer choices: The distribution is unimodal. The mean would be an appropriate measure of location. The median would be an appropriate measure of location The distribution is skewed to the right The standard deviation would be an appropriate measure of spread.
LAB 7.1 MANAGING USER ACCOUNTS STEP 1. Open a terminal window in linux.                               &n
LAB 7.1 MANAGING USER ACCOUNTS STEP 1. Open a terminal window in linux.                                         STEP 2. Execute the correct command to display user account information (including the login shell and home directory) for the bin account.                                         STEP 3. Execute the correct command to display user password information (including the encrypted password and password aging) for the bin account.                                         STEP 4. The command in step 3 should have failed. Execute the correct su command to change your account so...
1. Using the AS-AD model diagram, illustrate what happens to the LONG-RUN and SHORT-RUN equilibrium level...
1. Using the AS-AD model diagram, illustrate what happens to the LONG-RUN and SHORT-RUN equilibrium level of aggregate output and inflation, when the economy is hit by a negative (adverse) demand shock and there is NO POLICY response. Suppose the economy is at a long-run equilibrium before it is hit by the negative demand shock. Make sure you properly label all the axes and curves. Will the negative demand shock more likely lead to an expansion or recession in the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT