Scripting Use Cases

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:07 PM on 3/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

32 Terms

1
New cards

What is one of the primary use cases for scripting?

Basic automation

2
New cards

What does automation mean in scripting?

Performing some series of tasks supported by an OS or an app via a script rather than manually

3
New cards

When using a local script environment (Bash/PowerShell), what can the script use?

The built-in command environment

4
New cards

When using a general-purpose language like Python, what must the script use to “call” functions?

The operating system’s application programming interface (API)

5
New cards

How are Python API calls implemented?

As modules

6
New cards

What does the Python os module implement?

File system, user/permission functions, and process manipulation for whatever environment the interpreter is installed in

7
New cards

What does mod_python implement?

A Python interpreter for the Apache web server software

8
New cards

What is another option besides using one scripting language end-to-end?

Call one script from another

9
New cards

In PowerShell, what cmdlet restarts a computer and what parameter ignores warnings?

Restart-Computer; -Force

10
New cards

In Bash, what command restarts the host?

shutdown -r

11
New cards

In a Windows batch file, what command performs drive mapping?

net use

12
New cards

In PowerShell, what cmdlet can perform drive mapping?

New-PSDrive

13
New cards

Why does remapping network drives demonstrate the need for error handling?

Mapping a drive using a letter that has been assigned already returns an error

14
New cards

What is network drive mapping described as?

A Windows-only concept

15
New cards

In Linux, how is a file system made available within the root file system?

Mounting it using the mount and umount commands

16
New cards

In Windows, how can a setup file be executed in silent mode?

Using the command switches for its installer

17
New cards

What are Windows installers typically implemented as?

.EXE files or Windows Installer (.MSI) packages

18
New cards

What command is used to run a Windows Installer package from a script?

msiexec

19
New cards

In PowerShell, what cmdlet gives more options for controlling installation and handling errors?

Start-Process

20
New cards

In Windows, what process can be called from a batch file to perform typical update tasks?

wusa.exe

21
New cards

In PowerShell, what module contains numerous cmdlets for managing the update process?

PSWindowsUpdate

22
New cards

In Linux, what commands can be called from a Bash script to initiate updates, and what option suppresses confirmation messages?

apt-get/apt or yum; -y

23
New cards

At the command prompt, what Windows tool is named for simple file-copy backups?

robocopy

24
New cards

How can a script be set to run automatically in Windows vs Linux?

Windows Task Scheduler; cron

25
New cards

In PowerShell, what verb is used by hundreds of cmdlets that return configuration and state data?

Get

26
New cards

What does Get-NetAdapter return?

Properties of network adapters

27
New cards

What does Get-WinEvent return?

Log data

28
New cards

In PowerShell, what cmdlets can be used to apply filters to piped results?

Where-Object and Select-Object

29
New cards

In Bash, what tools are named for filtering and formatting command output?

grep; awk or cut

30
New cards

In the Bash script described, what does it report and where does it write the results?

Processes by the username supplied as an argument; a log file

31
New cards

In the Bash script described, what does printf append?

A header with the date, time, and username

32
New cards

In the Bash script described, what does the second line do to ps output?

Filters by the username, uses the length of the argument variable plus nine to cut characters from each line, and appends the output to the same log file

Explore top notes

note
Electricity in the Home
Updated 1263d ago
0.0(0)
note
(273) Algebra 1 Full Course
Updated 379d ago
0.0(0)
note
Body Systems
Updated 1125d ago
0.0(0)
note
Muscles and Motor Locomotion
Updated 1162d ago
0.0(0)
note
Big Idea 1: Creative Development
Updated 432d ago
0.0(0)
note
7th grade math
Updated 236d ago
0.0(0)
note
Electricity in the Home
Updated 1263d ago
0.0(0)
note
(273) Algebra 1 Full Course
Updated 379d ago
0.0(0)
note
Body Systems
Updated 1125d ago
0.0(0)
note
Muscles and Motor Locomotion
Updated 1162d ago
0.0(0)
note
Big Idea 1: Creative Development
Updated 432d ago
0.0(0)
note
7th grade math
Updated 236d ago
0.0(0)

Explore top flashcards

flashcards
AP Psychology: Unit 6
70
Updated 19d ago
0.0(0)
flashcards
Battle of the Books 2024-2025
28
Updated 529d ago
0.0(0)
flashcards
English - Visiting Hour
22
Updated 1117d ago
0.0(0)
flashcards
Terms for Quiz 2
51
Updated 868d ago
0.0(0)
flashcards
Chemistry
46
Updated 288d ago
0.0(0)
flashcards
Geri E2 Study Guide
137
Updated 331d ago
0.0(0)
flashcards
AP Psychology: Unit 6
70
Updated 19d ago
0.0(0)
flashcards
Battle of the Books 2024-2025
28
Updated 529d ago
0.0(0)
flashcards
English - Visiting Hour
22
Updated 1117d ago
0.0(0)
flashcards
Terms for Quiz 2
51
Updated 868d ago
0.0(0)
flashcards
Chemistry
46
Updated 288d ago
0.0(0)
flashcards
Geri E2 Study Guide
137
Updated 331d ago
0.0(0)