Chapter 15 - Working with the Command-Line Interface Flashcards
CLI stands for what?
Command-Line Interface(CLI). Very old but are kept up to date. a specific CLI is called a shell. Most OSes provide multiple shell options. All shells have a prompt to type in commands.
Linux Command is called what?
a Bash Shell. Have to use the “sudo” command to run command as an admin.
“dir’ command
shows dates and times of files and shows the folder that they are in.
What is a switch in the command prompt
The Switch is the end part added to the command line.
/? switch
this switch is very important followed by help and the command line you want to know about.
“LS” command
is the “dir(display)” command in Linux.
“man” command in Linux
is the /? switch just in Linux
“cd" command
The Change Directory(cd). Is a command in all operating systems to move the prompt to different folders/directories.
“cd ..” command
takes you into the next folder/directory upstream
“cd (name of folder)” command
To go to the next folder downstream.
“pwd” command in Linux
Just tells you want directory that your currently in.
“md” command
Make Directory(md). Allows you to make a folder in command prompt.
Windows vs. Linux command
Windows doesn’t care about Capital letters and uses (). Linux uses (/) and does care about Capital letters.
“rd” command
Remove Directory(rd). Allows you to remove/delete empty directories. You can’t delete directories using “rd” in windows. To delete directories, use the “rd /s” command.
“mkdir” command in Linux
Is the “md(make directory)” command just in Linux.
“rmdir” command in Linux
is the “rd” command just in Linux.
“del” command
Delete(del) command prompt to delete files in command prompt.
*. (file type)
Use *. followed by a file type named can be used with multiple commands to perform actions on a certain file type.
.
Use . can be used with multiple commands to perform actions on a entire folder.
copy
- Get to the directory with the files you want to copy. 2. Type copy followed by a space. 3. Type name of the file you want to copy followed by a space. 4. Type the path of where you want the file to go. 5. hit enter. copy fred.txt k:
move
same steps just moving the file not actually making a copy.
Standard vs. Admin command prompt
Commands available with standard privileges vs. admin privileges.
/FS:filesystem
Specifies the type of the file system (FAT, FAT32, exFAT, NTFS, UDF, ReFS).
/FS:NTFS
Formats a hard drive to NTFS
/Q
Performs a quick format. Note that this switch overrides /P.
chkdsk command
Scanning a hard drive for errors from the command prompt.
SFC stands for what?
System File Checker(SFC). Repairs critical Windows files based on the system store
DSIM stands for what?
Deployment Image Servicing & Management(DISM). Repairs critical Windows files based on online system stores.
Diskpart
Allows you to partition hard drives from the command prompt.
xcopy
Is the original Windows tool to copy entire directory trees, including any files in the tree
Robocopy
Is an improved version of xcopy, it’s faster and safer.
“dd” Linux command
Is the xcopy/robocopy command in Linux
Shutdown command
Shuts down your system. Can be paired with the switches /s and /r which are complete shutdown(/s) and shutdown and restart(/r)
Tasklist/Taskkill
Tasklist will list all the processes running on your system. Taskkill will let us shut down any of the processes running on your system.
“cls” command
clears the command prompt.
gpupdate/gpresult
Gpupdate forces policy updates. And Gpresult lists the resultant policy.
apt-get
Gives users access to the Debian repository on Linux
apt-get update
Updating the program repository on Linux.
apt-get upgrade
Upgrades/updates programs/applications on Linux
apt-get remove
Removes programs/applications on Linux
ps
the command in Linux that gives you control over processes.
ps aux
shows all processes running on the system regardless of user on Linux.
grep
only works with test files.
Kill
kills or ends a process on Linux
VI text editor
Very old text editor.
icacls
Windows command that enables changing NTFS permissions from the command line
chmod
Linux command that enables changing Linux Permissions
chown
Linux command that enables root users to take control of any Linux folder or file.
Batch file
A text file that stores a list of commands. That uses the extension “.bat”.
Environment Variables
Are phrases that point to system-wide functions
Windows Powershell
Can provide more powerful scripts than command prompt.
Extension for Powershell is what?
.ps1
ISE stands for what?
Integrated Scripting Environment.
Linux Bash Shell
Bash shell scripts in Linux can also provide powerful scripting functions.
“.exe” files are what?
Compiled code.
Visual Basic - “.vbs”
Been around a long time.
Variables
Are values that can change depending on how we define them.
Integers and Strings
Integers are numbers in code and Strings are text in code.
Comment syntax
Are just notes in code that don’t execute.
Python code - “.py”
Very popular coding language, easy to read. And be ran on all OS’s.
JavaScript code - “.js”
Another popular coding/programming language, Heavily used for web pages and animation.
Client-side Application
The code from the server to show you a web page.