Busy. Please wait.
or

show password
Forgot Password?

Don't have an account?  Sign up 
or

Username is available taken
show password

why


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
We do not share your email address with others. It is only used to allow you to reset your password. For details read our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

Remove Ads
Don't know
Know
remaining cards
Save
0:01
To flip the current card, click it or press the Spacebar key.  To move the current card to one of the three colored boxes, click on the box.  You may also press the UP ARROW key to move the card to the "Know" box, the DOWN ARROW key to move the card to the "Don't know" box, or the RIGHT ARROW key to move the card to the Remaining box.  You may also click on the card displayed in any of the three boxes to bring that card back to the center.

Pass complete!

"Know" box contains:
Time elapsed:
Retries:
restart all cards




share
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Linux mid 2

network operating systems

QuestionAnswer
Give the complete absolute path for the script cpuspeed: /etc/rc.d/init.d/cpuspeed
Which of these links will the init process use first upon booting s02lvm2-monitor
As root user, what command would you use to restart the system daemon lvm2-monitor. service lvm2-monitor restart
You have just added this rule to your /etc/rsyslog.conf *.alert;mail.none;news.none Where does the it cause the rsyslog messages to be placed? /var/log/alerts
What kind of rsyslog messages will it cause to be placed there? And which will explicitly not be placed there? All alert priority messages for all facilities except the mail and news facilities.
List 2 different methods to tell rsyslog to re-load its configuration file? kill -SIGHUP $(pgrep rsyslogd) service rsyslog restart
Show the output of the following? and if they fail? unset x; declare x; echo ${x:=user} user
unset x y; x="med"; y="carib"; echo '$y $x' $y $x
if grep -q '^chair:' /etc/passwd then; echo chair; else echo not; fi the first semicolon is in the wrong place
unset x; declare x=aflame; echo ${x:1} flame
unset y; declare y=algonquin; echo ${y:3:4} onqu
unset x; mkdir yy; cd yy; touch water air fire; for x in *; do echo $x > $x; done; cat *; cd..; rm -rf yy air fire water
unset x y; declare -i x=15 y=8; echo $(( $x $y )) 1
if ! [ -f /etc/rsyslog.conf ]; then echo system broken; fi nothing
unset i; declare -i i=2; while (( i >= 0 )); do echo -n i = $i"; "; (( i-- )); done; echo i = 2; i = 1; i = 0
unset x y; x="biscay"; y="bengal"; echo "$y $x" bengal biscay
There is a rule in your /etc/ryslog.conf *.err;authpriv.non;cron.none /var/log/errors What kind of rsyslog messages will it cause to be placed there? And what kind will not? Messages for all facilities except authpriv and cron at the err priority
use the rsyslog servers or daemon to place the text message "no errors" there on behalf of the syslog facility. Include your pid and the tag "GOOD" with the message. logger -i -t GOOD -p syslog.err "no errors"
unset x; declare x=cat; echo ${x:-dog} cat
unset x y; x="apple"; y="hp"; echo '$y $x' $y $x $y $x
if grep -q '^root:' /etc/shadow; then echo root; else echo not; fi root
unset x; declare x=frog; echo ${x:1} rog
unset y; declare y=bird; echo ${y:2:2] rd
unset x; mkdir yy; touch camel llama jenny for x in $(ls); do echo $x > $x; done; cat *;[snip] camel jenny llama
unset x y; declare -i x=13 y-9;echo $(( $x - $y )) 4
unset y; declare y; echo ${y:-fish} fish
if ! [ -f /etc/passwd ]; then echo logging broken; fi nothing
unset x y; x="plum"; y="cherry", echo "$y $x" cherry plum
give the complete name of gpm /etc/rc.d/init.d/gpm
Which of these are processed in sequence; S8[1-9]
as root user, what command would you use to restart the system daemon abrtd? service abrtd restart
this is a rule in you /etc/rsyslog.conf as follows: *.err;authpriv.none;cron.none /var/log/errors a) Where does it cause rsyslog messages to be placed /var/log/errors
this is a rule in you /etc/rsyslog.conf as follows: *.err;authpriv.none;cron.none /var/log/errors b) what kind of rsyslog messages will it cause to be placed there? Messages for all facilities except authpriv and cron at the err priority
this is a rule in you /etc/rsyslog.conf as follows: *.err;authpriv.none;cron.none /var/log/errors c) use the rsyslog service (or the rsyslogd daemon) to place the test message "no errors today" there on behalf of the syslog facility. logger -p syslog.err "no errors today"
Outputs of the following command: unset x; declare x=dog; echo ${x:-cat} dog
Outputs of the following command: unset x y; x="apple"; y="banana"; echo '$y $x' $y $x
Outputs of the following command: unset y; declare y; echo ${y:=bird} bird
Outputs of the following command: if grep -q '^root:' /etc/password; then echo root; else echo not; fi root
Outputs of the following command: unset x; declare x=dog; echo ${x:1} og
Outputs of the following command: unset y; declare y=fish; echo ${y:2:2} sh
Outputs of the following command: unset x; mkdir yy; cd yy; touch cow mule horse for x in $(ls); do echo $x > $x; done; cat *; cow horse mule
unset x y; declare -i x=14 y=9;echo $(( $x - $y )) 5
if ! [ -f /etc/shadow ]; then echo system brok; fi nothing
unset x y; x="peach"; y="melon"; echo "$y $x" melon peach
Use the rsyslog service (or the rsyslogd daemon) to place the text message "no errors" there on behalf of the syslog facility. Include your pid and the tag “GOOD” with the message. logger -i -t GOOD -p syslog.err "no errors"
Created by: Tranith