Test 1 Flashcards
(56 cards)
Batch file scripting ends in what three letters
In Batch file scripting how do you comment?
rem
In Batch file scripting how do you output to the console?
echo
In Batch file scripting how do you run a file or program?
start
What does the pause command do in Batch file scripting?
it paueses the program and gives you a prompt that says, “Press any key to continue”
How do you declare a variable in Batch file scripting?
set
What does “if not” mean in Batch file scripting?
checking a false condition
What does “if exist” mean in Batch file scripting?
checking if a file or folder exists
What does “if defined” mean in Batch file scripting?
checking if a variable exist
What is the extension of power shell script files?
.ps1
Power Shell- How to check the script execution policy set on your computer?
Get-ExecutionPolicy
Power Shell- What does “-whatif” do?
will tell you what the command will do without actually running the command
Power Shell- How to do a line comment?
#
Power Shell- How to do a block comment?
<# >
Power Shell- How to declare a variable?
$
Bash Scripting - How to open a new bash shell to execute the script?
!/bin/bash
Bash Scripting - How to change the file permissions for the user, group, and other categories so the shell script can be executed?
Chmod ugo+x filename or chmod 755 filename
What does “chmod” do?
Chmod (change mode) modifies the file permissions of the given file
Bash Scripting - how to declare a variable?
Variables are not declared, you just pick a variable name and assign it a value
Bash Scripting - How to access the value of a variable?
$
Bash Scripting - How to input a value?
read
Bash Scripting - How to do Arithmetic (Math)?
let
Bash Scripting - What is the basic if structure?
if [condition]
then
statements
fi
What is a Hacker?
a general term used to refer to a person who uses advanced computer skills to attack computers