Which is not a command-line environment?
Shell
CMD
Desktop
PowerShell
Desktop
Which choice increases the permissions a command is run with?
Precede the command with sudo. Preceding a command with sudo runs the command with the permissions of another user.
In both Linux and Windows, which command will change the working directory from one folder to another?
cmd
/
\
cd
cd. you can change the working directory in both Linux and Windows with the cd (change directory) command.
Which command displays a list of files and directories in Windows?
dir is the windows command to list files and directories.
Which command is a folder-management utility in the Linux command environment?
The “mkdir” command makes directories in Linux.
Which switch should be added to the rmdir command in order to delete a directory and its subdirectories?
“rmdir -r” removes directories and subdirectories in Linux.
Which is not a valid Linux or Windows command to erase files?
rm
del
mv
cp
cp is the Linux command to copy files.
del is the windows command to delete files.
rm is the Linux command to delete files.
mv is the Linux command to copy files then delete the originals
Which command will delete all files with the extension .jpg but no other files?
del jpg.*
del jpg*
del *.jpg
del *jpg
del *.jpg deletes files with any name as long as the extension is exactly .jpg.
Which command finds and fixes file table problems on a Windows computer?
chkdsk (also called error checking) finds and fixes problems with file tables.
If sfc finds errors, what should a technician do?
Run dism. best practice if sfc finds errors is to run dism to repair critical Windows files.
Which of these is a bit-by-bit copy command?
xcopy
dd
robocopy
cp
dd is a bit-by-bit command. The other commands are all file and directory copy commands
Which command causes /dev/sdb to be overwritten with zeroes?
dd if=/dev/zero of=/dev/sdb
dd if=/dev/sdb of=/dev/zero
dd if=/dev/sda of=/dev/sdb
dd if=/dev/sdb of=~/backup.img
dd if=/dev/zero of=/dev/sdb is the standard method to overwrite the output file (of) with zeros.
Which Windows command shows running processes and their PIDs?
tasklist is the windows command that shows active processes and PIDs.
taskkill kills active processes.
ps is the Linux command to show active processes.
gpresult shows active policies on a windows computer.
Which apt-get option gets a list of the current version of all installed software?
apt-get update collects version information (and any avaliable updates) for all installed software.
Which command has replaced apt-get?
apt-get has been replaced by apt (though apt-get still works).
To take ownership of a Linux file, which command should you use?
chown changes a file’s owner (and the group).
Which symbol in a Bash scripts indicates the rest of the line is a comment?
is the comment symbol in bash.
What is the extension of a Visual Basic file?
.vbs Visual basic files have the .vbs extension.
Which is not an interpreted language?
C is a compiled language.
Interpreted Languages include ____________.
Javascipt, python, and visual basic
CLI
Command Line Interface. Conceptually old, but as up to date as everything else. cmd in search bar will bring up command prompt
Windows Power Shell
Alternative to command prompt
Bash Shell
Linux version of command line interface
CLI Command Windows:
“dir”
shows date and time file created, how big, and file name.