SlideShare a Scribd company logo
1 of 7
Log into your netlab workstation then ssh to
server.cnt1015.local with your college username (the account
you used for the quizes).
Create a directory called
final
in your home directory.
Inside
final
create directories called
backup, main, SysInfo, & files
Inside the
main
directory create a file called
boot.both
which contains a recursive listing of all the files and
directories inside the directory /boot and includes any error
messages.
Copy the script
snooze
from /home/stuff, put it in your
main
directory.
Run snooze.
While it is running:
Put it into the background in a suspended state.
Run the command which shows which jobs are running in the
background, putting the output in a file called
sleepingjobs
in your
main
directory.
Return snooze to the foreground and let it finish running.
Copy only the files with an "s" and a "p" adjacent regardless of
case (i.e sp , SP, sP, or Sp) to the directory
files
from the directory /usr/share/system-config-printer
Create a file called
userinfo
in
backup
.
On the first line put the home directory of the user games.
On the second line put the login shell of the user root.
On the third line put the members of the group wheel seperated
only by a comma.
Set permissions on the file
userinfo
so that it is owned by the group cnt1015.
Inside the
backup
directory create a recursive copy of the /usr/share/doc/HTML
directory
Create an alias called
now
which shows the date & time as YYYY/MM,DD-HH:MM (ex:
2014/10,16-18:50) making sure the alias survives a re-login.
Perform a recursive long listing on /boot redirecting stdout to a
file called
ls.out
in the
main
directory and redirecting stderr to a file called
ls.err
in the
main
directory.
Create a file called
num.lines
in your
main
directory which has the numbers of lines in the file
/etc/httpd/conf/httpd.conf
Search for the term
audio
in the file /etc/httpd/conf/magic, sending the results to a file
called
magic.audio
in
main
.
Create a file called
if.info
in the
SysInfo
directory which contains the network information on the eth0
network device and only the information for that device.
Find the IP address of the server spam.cnt1015.local and put it
in the file
spam.ip
under the
main
directory.
Capture your routing table information into the file
routeinfo
in the
SysInfo
directory.
Find the secondary DNS server address and put it in a file
called
nameserver2
in the
SysInfo
directory.
Capture the output of the command that tests ICMP availability
for the IP address 127.0.0.1 three times and put that output in a
file called
nettest
under the
main
directory.
Make a script called
hello
, in the
main
directory.
Set permissions so you can read, edit and run but the group and
others only have read permissions.
The scrip needs to take a name passed into it.
The output from the script should be:
Hello XXXXXX.
You are logged in as yyyyyyy.
Where XXXXXX is a name you passed in and yyyyyy is the
username you are logged in as"
ex:
Hello Sean.
You are logged in as scpayne.
Run the script you created in step 18 and capture the output to a
file called
hello.out
in the main directory.
Determine which users are logged into the system and capture it
to a file called
notify
in the main directory.
Determine how many regular users exist on the system and put
that number in a file called
numusers
in the
main
directory.
Determine the percentage of used space, in human readable
format, in /boot and put that in a file called
usedspace
under the
main
directory. ( ie, if the used space is 30%, just have 30% in in the
file.)
Make a hidden directory in your
backup
directory called
hiddenbackups
that only your user has permissions to access.
Get a list of all users with a UID between 400-499, sort it
numberically in reverse order on the GID field putting the result
in a file called
sortedusers
in your
main
directory.
Make a file called
groups.6-10
, in the
main
directory, containing the 6th - 10th groups (lines 6-10) found in
/etc/group.
EXTRA CREDIT (10 points)
Make a script called
info.sh
, in the
main
directory.
Set permissions so you can read, edit and run but the group and
others only have read permissions.
If you pass in a 1, it will tell you the date using YYYY-MM-DD
(ie 2013-07-30).
If you pass in a 2, it will tell you the time (ie HH:MM:SS).
If you pass in a 3, it will tell you the date & time (2013-07-29--
09:31:01).
If you pass don't pass anything in or you pass in something
other than 1,2,or 3 it will tell you you need to pass in 1-3.
To grade your final, run "/home/stuff/grade_final.sh.x"
Log into your netlab workstation then ssh to server.cnt1015.local wi.docx

More Related Content

Similar to Log into your netlab workstation then ssh to server.cnt1015.local wi.docx

Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overviewAmeer Sameer
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS
 
Lamp1
Lamp1Lamp1
Lamp1Reka
 
Lamp
LampLamp
LampReka
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemSadia Bashir
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manualSaikat Rakshit
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manualCraig Cannon
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Scriptsbmguys
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0venkatakrishnan k
 
basics of file handling
basics of file handlingbasics of file handling
basics of file handlingpinkpreet_kaur
 
Basics of file handling
Basics of file handlingBasics of file handling
Basics of file handlingpinkpreet_kaur
 

Similar to Log into your netlab workstation then ssh to server.cnt1015.local wi.docx (20)

Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
 
Lamp1
Lamp1Lamp1
Lamp1
 
Lamp1
Lamp1Lamp1
Lamp1
 
Lamp
LampLamp
Lamp
 
Assignment OS LAB 2022
Assignment OS LAB 2022Assignment OS LAB 2022
Assignment OS LAB 2022
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 
Unix-module3.pptx
Unix-module3.pptxUnix-module3.pptx
Unix-module3.pptx
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
 
Operating system
Operating systemOperating system
Operating system
 
Basics of unix
Basics of unixBasics of unix
Basics of unix
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
File system discovery
File system discovery File system discovery
File system discovery
 
basics of file handling
basics of file handlingbasics of file handling
basics of file handling
 
Basics of file handling
Basics of file handlingBasics of file handling
Basics of file handling
 
File in cpp 2016
File in cpp 2016 File in cpp 2016
File in cpp 2016
 

More from desteinbrook

Marketing Communication ProcessCommunicating is an important marke.docx
Marketing Communication ProcessCommunicating is an important marke.docxMarketing Communication ProcessCommunicating is an important marke.docx
Marketing Communication ProcessCommunicating is an important marke.docxdesteinbrook
 
Marketing in a Global EconomyRead the article Airbnb and the U.docx
Marketing in a Global EconomyRead the article Airbnb and the U.docxMarketing in a Global EconomyRead the article Airbnb and the U.docx
Marketing in a Global EconomyRead the article Airbnb and the U.docxdesteinbrook
 
Mark Danner writes that El Mozote epitomized, the classic debate of.docx
Mark Danner writes that El Mozote epitomized, the classic debate of.docxMark Danner writes that El Mozote epitomized, the classic debate of.docx
Mark Danner writes that El Mozote epitomized, the classic debate of.docxdesteinbrook
 
MarijuanaThere is much discussion in the press about several state.docx
MarijuanaThere is much discussion in the press about several state.docxMarijuanaThere is much discussion in the press about several state.docx
MarijuanaThere is much discussion in the press about several state.docxdesteinbrook
 
Mark describes his use of Technical Reasoning as the following .docx
Mark describes his use of Technical Reasoning as the following .docxMark describes his use of Technical Reasoning as the following .docx
Mark describes his use of Technical Reasoning as the following .docxdesteinbrook
 
Marco works as a freelance science writer. He wants to improve his p.docx
Marco works as a freelance science writer. He wants to improve his p.docxMarco works as a freelance science writer. He wants to improve his p.docx
Marco works as a freelance science writer. He wants to improve his p.docxdesteinbrook
 
Market Research OverviewWhat is the idea of using marketing re.docx
Market Research OverviewWhat is the idea of using marketing re.docxMarket Research OverviewWhat is the idea of using marketing re.docx
Market Research OverviewWhat is the idea of using marketing re.docxdesteinbrook
 
Many telephone companies and Internet Service Providers destroy logs.docx
Many telephone companies and Internet Service Providers destroy logs.docxMany telephone companies and Internet Service Providers destroy logs.docx
Many telephone companies and Internet Service Providers destroy logs.docxdesteinbrook
 
Many teachers who have been in the classroom for a number of years, .docx
Many teachers who have been in the classroom for a number of years, .docxMany teachers who have been in the classroom for a number of years, .docx
Many teachers who have been in the classroom for a number of years, .docxdesteinbrook
 
Many students feel they know about the American War for Independence.docx
Many students feel they know about the American War for Independence.docxMany students feel they know about the American War for Independence.docx
Many students feel they know about the American War for Independence.docxdesteinbrook
 
March 7, 2015Proffessor 2013, are you writing Assignment 2 Po.docx
March 7, 2015Proffessor 2013, are you writing Assignment 2 Po.docxMarch 7, 2015Proffessor 2013, are you writing Assignment 2 Po.docx
March 7, 2015Proffessor 2013, are you writing Assignment 2 Po.docxdesteinbrook
 
Many students in the past have applied SWOT in a very descriptive ma.docx
Many students in the past have applied SWOT in a very descriptive ma.docxMany students in the past have applied SWOT in a very descriptive ma.docx
Many students in the past have applied SWOT in a very descriptive ma.docxdesteinbrook
 
Many scholars and researchers contend that LD is not a disability an.docx
Many scholars and researchers contend that LD is not a disability an.docxMany scholars and researchers contend that LD is not a disability an.docx
Many scholars and researchers contend that LD is not a disability an.docxdesteinbrook
 
Many people struggle with the differences among the types of Intelle.docx
Many people struggle with the differences among the types of Intelle.docxMany people struggle with the differences among the types of Intelle.docx
Many people struggle with the differences among the types of Intelle.docxdesteinbrook
 
Many providers have an option to choose between fee for service paym.docx
Many providers have an option to choose between fee for service paym.docxMany providers have an option to choose between fee for service paym.docx
Many providers have an option to choose between fee for service paym.docxdesteinbrook
 
Many people dream about one day owning their own business. In th.docx
Many people dream about one day owning their own business. In th.docxMany people dream about one day owning their own business. In th.docx
Many people dream about one day owning their own business. In th.docxdesteinbrook
 
Many factors influence maternal health. In many countries, an unacce.docx
Many factors influence maternal health. In many countries, an unacce.docxMany factors influence maternal health. In many countries, an unacce.docx
Many factors influence maternal health. In many countries, an unacce.docxdesteinbrook
 
Many of the social networking sites make the behavior of employees.docx
Many of the social networking sites make the behavior of employees.docxMany of the social networking sites make the behavior of employees.docx
Many of the social networking sites make the behavior of employees.docxdesteinbrook
 
Many readers take issue with some of Thoreaus suggestions, which ar.docx
Many readers take issue with some of Thoreaus suggestions, which ar.docxMany readers take issue with some of Thoreaus suggestions, which ar.docx
Many readers take issue with some of Thoreaus suggestions, which ar.docxdesteinbrook
 
Many of you have reported that is difficult to keep communication cu.docx
Many of you have reported that is difficult to keep communication cu.docxMany of you have reported that is difficult to keep communication cu.docx
Many of you have reported that is difficult to keep communication cu.docxdesteinbrook
 

More from desteinbrook (20)

Marketing Communication ProcessCommunicating is an important marke.docx
Marketing Communication ProcessCommunicating is an important marke.docxMarketing Communication ProcessCommunicating is an important marke.docx
Marketing Communication ProcessCommunicating is an important marke.docx
 
Marketing in a Global EconomyRead the article Airbnb and the U.docx
Marketing in a Global EconomyRead the article Airbnb and the U.docxMarketing in a Global EconomyRead the article Airbnb and the U.docx
Marketing in a Global EconomyRead the article Airbnb and the U.docx
 
Mark Danner writes that El Mozote epitomized, the classic debate of.docx
Mark Danner writes that El Mozote epitomized, the classic debate of.docxMark Danner writes that El Mozote epitomized, the classic debate of.docx
Mark Danner writes that El Mozote epitomized, the classic debate of.docx
 
MarijuanaThere is much discussion in the press about several state.docx
MarijuanaThere is much discussion in the press about several state.docxMarijuanaThere is much discussion in the press about several state.docx
MarijuanaThere is much discussion in the press about several state.docx
 
Mark describes his use of Technical Reasoning as the following .docx
Mark describes his use of Technical Reasoning as the following .docxMark describes his use of Technical Reasoning as the following .docx
Mark describes his use of Technical Reasoning as the following .docx
 
Marco works as a freelance science writer. He wants to improve his p.docx
Marco works as a freelance science writer. He wants to improve his p.docxMarco works as a freelance science writer. He wants to improve his p.docx
Marco works as a freelance science writer. He wants to improve his p.docx
 
Market Research OverviewWhat is the idea of using marketing re.docx
Market Research OverviewWhat is the idea of using marketing re.docxMarket Research OverviewWhat is the idea of using marketing re.docx
Market Research OverviewWhat is the idea of using marketing re.docx
 
Many telephone companies and Internet Service Providers destroy logs.docx
Many telephone companies and Internet Service Providers destroy logs.docxMany telephone companies and Internet Service Providers destroy logs.docx
Many telephone companies and Internet Service Providers destroy logs.docx
 
Many teachers who have been in the classroom for a number of years, .docx
Many teachers who have been in the classroom for a number of years, .docxMany teachers who have been in the classroom for a number of years, .docx
Many teachers who have been in the classroom for a number of years, .docx
 
Many students feel they know about the American War for Independence.docx
Many students feel they know about the American War for Independence.docxMany students feel they know about the American War for Independence.docx
Many students feel they know about the American War for Independence.docx
 
March 7, 2015Proffessor 2013, are you writing Assignment 2 Po.docx
March 7, 2015Proffessor 2013, are you writing Assignment 2 Po.docxMarch 7, 2015Proffessor 2013, are you writing Assignment 2 Po.docx
March 7, 2015Proffessor 2013, are you writing Assignment 2 Po.docx
 
Many students in the past have applied SWOT in a very descriptive ma.docx
Many students in the past have applied SWOT in a very descriptive ma.docxMany students in the past have applied SWOT in a very descriptive ma.docx
Many students in the past have applied SWOT in a very descriptive ma.docx
 
Many scholars and researchers contend that LD is not a disability an.docx
Many scholars and researchers contend that LD is not a disability an.docxMany scholars and researchers contend that LD is not a disability an.docx
Many scholars and researchers contend that LD is not a disability an.docx
 
Many people struggle with the differences among the types of Intelle.docx
Many people struggle with the differences among the types of Intelle.docxMany people struggle with the differences among the types of Intelle.docx
Many people struggle with the differences among the types of Intelle.docx
 
Many providers have an option to choose between fee for service paym.docx
Many providers have an option to choose between fee for service paym.docxMany providers have an option to choose between fee for service paym.docx
Many providers have an option to choose between fee for service paym.docx
 
Many people dream about one day owning their own business. In th.docx
Many people dream about one day owning their own business. In th.docxMany people dream about one day owning their own business. In th.docx
Many people dream about one day owning their own business. In th.docx
 
Many factors influence maternal health. In many countries, an unacce.docx
Many factors influence maternal health. In many countries, an unacce.docxMany factors influence maternal health. In many countries, an unacce.docx
Many factors influence maternal health. In many countries, an unacce.docx
 
Many of the social networking sites make the behavior of employees.docx
Many of the social networking sites make the behavior of employees.docxMany of the social networking sites make the behavior of employees.docx
Many of the social networking sites make the behavior of employees.docx
 
Many readers take issue with some of Thoreaus suggestions, which ar.docx
Many readers take issue with some of Thoreaus suggestions, which ar.docxMany readers take issue with some of Thoreaus suggestions, which ar.docx
Many readers take issue with some of Thoreaus suggestions, which ar.docx
 
Many of you have reported that is difficult to keep communication cu.docx
Many of you have reported that is difficult to keep communication cu.docxMany of you have reported that is difficult to keep communication cu.docx
Many of you have reported that is difficult to keep communication cu.docx
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Log into your netlab workstation then ssh to server.cnt1015.local wi.docx

  • 1. Log into your netlab workstation then ssh to server.cnt1015.local with your college username (the account you used for the quizes). Create a directory called final in your home directory. Inside final create directories called backup, main, SysInfo, & files Inside the main directory create a file called boot.both which contains a recursive listing of all the files and directories inside the directory /boot and includes any error messages. Copy the script snooze from /home/stuff, put it in your main directory. Run snooze. While it is running: Put it into the background in a suspended state. Run the command which shows which jobs are running in the background, putting the output in a file called sleepingjobs in your main directory.
  • 2. Return snooze to the foreground and let it finish running. Copy only the files with an "s" and a "p" adjacent regardless of case (i.e sp , SP, sP, or Sp) to the directory files from the directory /usr/share/system-config-printer Create a file called userinfo in backup . On the first line put the home directory of the user games. On the second line put the login shell of the user root. On the third line put the members of the group wheel seperated only by a comma. Set permissions on the file userinfo so that it is owned by the group cnt1015. Inside the backup directory create a recursive copy of the /usr/share/doc/HTML directory Create an alias called now which shows the date & time as YYYY/MM,DD-HH:MM (ex: 2014/10,16-18:50) making sure the alias survives a re-login. Perform a recursive long listing on /boot redirecting stdout to a file called ls.out in the
  • 3. main directory and redirecting stderr to a file called ls.err in the main directory. Create a file called num.lines in your main directory which has the numbers of lines in the file /etc/httpd/conf/httpd.conf Search for the term audio in the file /etc/httpd/conf/magic, sending the results to a file called magic.audio in main . Create a file called if.info in the SysInfo directory which contains the network information on the eth0 network device and only the information for that device. Find the IP address of the server spam.cnt1015.local and put it in the file spam.ip under the main directory.
  • 4. Capture your routing table information into the file routeinfo in the SysInfo directory. Find the secondary DNS server address and put it in a file called nameserver2 in the SysInfo directory. Capture the output of the command that tests ICMP availability for the IP address 127.0.0.1 three times and put that output in a file called nettest under the main directory. Make a script called hello , in the main directory. Set permissions so you can read, edit and run but the group and others only have read permissions. The scrip needs to take a name passed into it. The output from the script should be: Hello XXXXXX. You are logged in as yyyyyyy. Where XXXXXX is a name you passed in and yyyyyy is the username you are logged in as"
  • 5. ex: Hello Sean. You are logged in as scpayne. Run the script you created in step 18 and capture the output to a file called hello.out in the main directory. Determine which users are logged into the system and capture it to a file called notify in the main directory. Determine how many regular users exist on the system and put that number in a file called numusers in the main directory. Determine the percentage of used space, in human readable format, in /boot and put that in a file called usedspace under the main directory. ( ie, if the used space is 30%, just have 30% in in the file.) Make a hidden directory in your backup directory called hiddenbackups that only your user has permissions to access. Get a list of all users with a UID between 400-499, sort it
  • 6. numberically in reverse order on the GID field putting the result in a file called sortedusers in your main directory. Make a file called groups.6-10 , in the main directory, containing the 6th - 10th groups (lines 6-10) found in /etc/group. EXTRA CREDIT (10 points) Make a script called info.sh , in the main directory. Set permissions so you can read, edit and run but the group and others only have read permissions. If you pass in a 1, it will tell you the date using YYYY-MM-DD (ie 2013-07-30). If you pass in a 2, it will tell you the time (ie HH:MM:SS). If you pass in a 3, it will tell you the date & time (2013-07-29-- 09:31:01). If you pass don't pass anything in or you pass in something other than 1,2,or 3 it will tell you you need to pass in 1-3. To grade your final, run "/home/stuff/grade_final.sh.x"