SlideShare a Scribd company logo
SHELL
PROGRAMMING
System Management
By
Gaurav. M. Raikar
EL-18-12
• A shell program or script is a computer program
designed to be run by the Unix shell, a
command-line interpreter.
• The various dialects of shell scripts are
considered to be scripting languages.
• Typical operations performed by shell scripts
include file manipulation, program execution,
and printing text
Shell Programming
SYSTEM ARCHITECTURE
Hardware layer
Hardware layer consists of all peripheral devices (RAM/ HDD/ CPU etc.)
Kernel
• It is the core component of Operating System.
• It interacts directly with the underlying hardware and provides low level services
to upper layer components.
• It manages the resources of Linux such as file management, multitasking,
memory & I/O management
Shell
• Shell is an interface between a user and the kernel, hiding complexity of kernel's
functions from users.
• The shell takes commands from the user and executes kernel's functions.
• shell gets started when the user logs in or start the terminal.
Utilities
• Utility programs that provide the user most of the functionalities of an operating
systems.
Vmware & Fedora OS
• VMware Workstation is a hosted hypervisor that runs on
x64 versions of Windows and Linux operating systems; it
enables users to set up virtual machines on a single
physical machine
• Fedora is an open-source operating system built over the
Linux OS kernel architecture.
Fedora is a free to use, customize and distribute. The
operating system is integrated with packaged software and
applications to provide enhanced abilities and functions.
Python
• Python is a high level language like C++, java.
• It is easier to program in python as it is easy to learn and
use, it takes less time to write, programs are shorter and
easier to read.
System Administration
• The job of a system administrator is to manage the
operations of a handling files and directories of
computer system.
• An Operating System is designed consisting of system
software meant for different purpose.
• Each process is monitored by the process to know if it
is working properly or not.
Session Management
• Its a process of keeping track of activity across
sessions of interactions with the computer system.
• Typically sessions management include keeping
track of applications open and thread handled.
• A desktop is a program that saves contents and
keep it for further use.
FILE SYSTEM COMMANDS
System Related Commands
Who: shows who is logged in
Who am I :Shows the name of current user logged in
who -b: Shows the user list
Date : Shows the current date and time
ps -ef : Gives the full information of each running process
Up-time : Tells how long it has been since the system has been powered ON.
Last : shows Session In.
Last User : Shows Information Of Login session Of Last User
Free : Shows the free ,used memory on system
import os
import sys
import time
print "who am i"
print os.system('who am i')
print os.system('uname -airvms')
print "todays date and time"
print os.system ('date')
print "who has logged in the system"
print os.system('who -b')
print os.system('w')
print "full information about each of
the process currently running"
print os.system('ps -ef')
print "user oriented information"
print os.system('ps -u')
print "list information about files"
print os.system('ls -ls')
print "memory usage chart"
print os.system('free')
print " memory usage chart in human
readable format "
print os.system('free -h')
print "see how long the system has been
power up"
print os.system('uptime')
print "uptime in pretty format"
print os.system('uptime -p')
print "information about last logged in
session"
print os.system('last -f/var/log/wtmp')
print "get information of the session only
of the user "
print os.system('last user ')
print "information of the session with full
user name and domain name "
print os.system('last -w')
print "get information of the session with
the full user name and information about
last session"
print os.system('last reboot')
Program
Output
system management -shell programming by Gaurav raikar
system management -shell programming by Gaurav raikar
system management -shell programming by Gaurav raikar
system management -shell programming by Gaurav raikar

More Related Content

What's hot

Operating system
Operating systemOperating system
Operating system
HarshithaAllu
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
subhsikha
 
Studying a decade of Linux system calls
Studying a decade of Linux system callsStudying a decade of Linux system calls
Studying a decade of Linux system calls
corpaulbezemer
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
Akshay Kurup
 
Unix.system.calls
Unix.system.callsUnix.system.calls
Unix.system.calls
GRajendra
 
Unix operating system
Unix operating systemUnix operating system
Unix operating systemmidhunjose4u
 
Introduction to unix
Introduction to unixIntroduction to unix
Introduction to unix
sudheer yathagiri
 
Architecture of Linux
 Architecture of Linux Architecture of Linux
Architecture of Linux
SHUBHA CHATURVEDI
 
OS Functions and Services
OS Functions and ServicesOS Functions and Services
OS Functions and Services
sgpraju
 
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya JyothiIntroduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
Sowmya Jyothi
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
ABhay Panchal
 
Operating system v1 d1
Operating system v1 d1Operating system v1 d1
Operating system v1 d1
Himanshu Pant
 
Operating systems11 9-07
Operating systems11 9-07Operating systems11 9-07
Operating systems11 9-07ainfara
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
Shivam Pandey
 
Unix lecture1
Unix lecture1Unix lecture1
Unix lecture1
dolleyj
 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
Fatima Qayyum
 
System call
System callSystem call
System call
shahadat hossain
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
MahakKasliwal
 
The purpose of operating systems
The purpose of operating systemsThe purpose of operating systems
The purpose of operating systems93DragonNinja
 
Unix seminar
Unix seminarUnix seminar
Unix seminar
Ajeet Kushwaha
 

What's hot (20)

Operating system
Operating systemOperating system
Operating system
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Studying a decade of Linux system calls
Studying a decade of Linux system callsStudying a decade of Linux system calls
Studying a decade of Linux system calls
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
 
Unix.system.calls
Unix.system.callsUnix.system.calls
Unix.system.calls
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
 
Introduction to unix
Introduction to unixIntroduction to unix
Introduction to unix
 
Architecture of Linux
 Architecture of Linux Architecture of Linux
Architecture of Linux
 
OS Functions and Services
OS Functions and ServicesOS Functions and Services
OS Functions and Services
 
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya JyothiIntroduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
 
Operating system v1 d1
Operating system v1 d1Operating system v1 d1
Operating system v1 d1
 
Operating systems11 9-07
Operating systems11 9-07Operating systems11 9-07
Operating systems11 9-07
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Unix lecture1
Unix lecture1Unix lecture1
Unix lecture1
 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
 
System call
System callSystem call
System call
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
The purpose of operating systems
The purpose of operating systemsThe purpose of operating systems
The purpose of operating systems
 
Unix seminar
Unix seminarUnix seminar
Unix seminar
 

Similar to system management -shell programming by Gaurav raikar

Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and Github
Devang Garach
 
e.pdf
e.pdfe.pdf
e.pdf
ay3539355
 
Spsl unit1
Spsl   unit1Spsl   unit1
Spsl unit1
Sasidhar Kothuru
 
LinuxOS-1 (1).ppt
LinuxOS-1 (1).pptLinuxOS-1 (1).ppt
LinuxOS-1 (1).ppt
Savitha74
 
Introduction to System Programming
Introduction to System ProgrammingIntroduction to System Programming
Introduction to System Programming
Sayed Chhattan Shah
 
Unix_Introduction_BCA.pptx the very basi
Unix_Introduction_BCA.pptx the very basiUnix_Introduction_BCA.pptx the very basi
Unix_Introduction_BCA.pptx the very basi
Priyadarshini648418
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
Green Ecosystem
 
Chapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix ConceptsChapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix Concepts
MeenalJabde
 
operatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptxoperatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptx
krishnajoshi70
 
Operating System 2
Operating System 2Operating System 2
Operating System 2
tech2click
 
UNIT II-Programming in Linux
UNIT II-Programming in LinuxUNIT II-Programming in Linux
UNIT II-Programming in Linux
Dr.YNM
 
operating system
operating systemoperating system
operating system
Ibbad shah
 
Lecture 4.pptx
Lecture 4.pptxLecture 4.pptx
Lecture 4.pptx
sara591850
 
Operating system
Operating systemOperating system
Operating system
MusTufa Nullwala
 
Computer system software
Computer system softwareComputer system software
Computer system software
MozaSaid
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
Nishant Munjal
 
Linux for beginners
Linux for beginnersLinux for beginners
Linux for beginners
Nitesh Nayal
 

Similar to system management -shell programming by Gaurav raikar (20)

Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and Github
 
e.pdf
e.pdfe.pdf
e.pdf
 
Spsl unit1
Spsl   unit1Spsl   unit1
Spsl unit1
 
LinuxOS-1 (1).ppt
LinuxOS-1 (1).pptLinuxOS-1 (1).ppt
LinuxOS-1 (1).ppt
 
Introduction to System Programming
Introduction to System ProgrammingIntroduction to System Programming
Introduction to System Programming
 
Unix_Introduction_BCA.pptx the very basi
Unix_Introduction_BCA.pptx the very basiUnix_Introduction_BCA.pptx the very basi
Unix_Introduction_BCA.pptx the very basi
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
 
Os concepts
Os conceptsOs concepts
Os concepts
 
Chapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix ConceptsChapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix Concepts
 
operatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptxoperatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptx
 
Operating System 2
Operating System 2Operating System 2
Operating System 2
 
UNIT II-Programming in Linux
UNIT II-Programming in LinuxUNIT II-Programming in Linux
UNIT II-Programming in Linux
 
operating system
operating systemoperating system
operating system
 
Lecture 4.pptx
Lecture 4.pptxLecture 4.pptx
Lecture 4.pptx
 
Operating system
Operating systemOperating system
Operating system
 
Computer system software
Computer system softwareComputer system software
Computer system software
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Software
SoftwareSoftware
Software
 
Software
SoftwareSoftware
Software
 
Linux for beginners
Linux for beginnersLinux for beginners
Linux for beginners
 

Recently uploaded

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 

Recently uploaded (20)

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 

system management -shell programming by Gaurav raikar

  • 2. • A shell program or script is a computer program designed to be run by the Unix shell, a command-line interpreter. • The various dialects of shell scripts are considered to be scripting languages. • Typical operations performed by shell scripts include file manipulation, program execution, and printing text Shell Programming
  • 4. Hardware layer Hardware layer consists of all peripheral devices (RAM/ HDD/ CPU etc.) Kernel • It is the core component of Operating System. • It interacts directly with the underlying hardware and provides low level services to upper layer components. • It manages the resources of Linux such as file management, multitasking, memory & I/O management Shell • Shell is an interface between a user and the kernel, hiding complexity of kernel's functions from users. • The shell takes commands from the user and executes kernel's functions. • shell gets started when the user logs in or start the terminal. Utilities • Utility programs that provide the user most of the functionalities of an operating systems.
  • 5. Vmware & Fedora OS • VMware Workstation is a hosted hypervisor that runs on x64 versions of Windows and Linux operating systems; it enables users to set up virtual machines on a single physical machine • Fedora is an open-source operating system built over the Linux OS kernel architecture. Fedora is a free to use, customize and distribute. The operating system is integrated with packaged software and applications to provide enhanced abilities and functions. Python • Python is a high level language like C++, java. • It is easier to program in python as it is easy to learn and use, it takes less time to write, programs are shorter and easier to read.
  • 6. System Administration • The job of a system administrator is to manage the operations of a handling files and directories of computer system. • An Operating System is designed consisting of system software meant for different purpose. • Each process is monitored by the process to know if it is working properly or not.
  • 7. Session Management • Its a process of keeping track of activity across sessions of interactions with the computer system. • Typically sessions management include keeping track of applications open and thread handled. • A desktop is a program that saves contents and keep it for further use.
  • 9. System Related Commands Who: shows who is logged in Who am I :Shows the name of current user logged in who -b: Shows the user list Date : Shows the current date and time ps -ef : Gives the full information of each running process Up-time : Tells how long it has been since the system has been powered ON. Last : shows Session In. Last User : Shows Information Of Login session Of Last User Free : Shows the free ,used memory on system
  • 10. import os import sys import time print "who am i" print os.system('who am i') print os.system('uname -airvms') print "todays date and time" print os.system ('date') print "who has logged in the system" print os.system('who -b') print os.system('w') print "full information about each of the process currently running" print os.system('ps -ef') print "user oriented information" print os.system('ps -u') print "list information about files" print os.system('ls -ls') print "memory usage chart" print os.system('free') print " memory usage chart in human readable format " print os.system('free -h') print "see how long the system has been power up" print os.system('uptime') print "uptime in pretty format" print os.system('uptime -p') print "information about last logged in session" print os.system('last -f/var/log/wtmp') print "get information of the session only of the user " print os.system('last user ') print "information of the session with full user name and domain name " print os.system('last -w') print "get information of the session with the full user name and information about last session" print os.system('last reboot') Program