Command line tools Flashcards
copy files from the command line in Linux. Copy files by moving them from one location to another such as from one drive to another.
cp.
copy files with options and control over how to copy files and directories
xcopy
copy files, including subdirectories that contain content when copying files
xcopy /s
protect larger files while copying
xcopy /j
copy
copy
what command would I use when a hard driver is beginning to fail, the issue is purely mechanical, and I need to copy all the files to another drive without buffering and protect the larger files?
xcopy /j
how would I copy files with more commands then xcopy, including commands for moving secure files?
robocopy
what copies files with security?
robocopy /sec
what would I use if I needed to move files from one place to another with a security intact?
robocopy /sec
what is an example of a switch in a command?
/x, specify the command with /*
what commands are used to troubleshot and perform tasks on a computer’s disc file system and drives
disk management
what command checks both the file system and its metadata for physical and logical errors?
chkdsk,
fsck: Linux
we command checks the drive and repairs any issues?
chkdsk /f
what command would I use if a computer has problems opening files and is not bringing up apps and programs in order to scan the drive and display the status of the disk, find problem sectors in it, and then repair the drive?
chkdsk, chkdsk /f switch to repair the drive
what command checks the system for corrupted files and looks for cached copies of the files to try to repair them?
sfc
what command I use if a computer is having problems running and displaying error warnings and periodically shutting down to look for and fix corrupted files before taking any further steps? displays the first ten lines of the patches.txt file
sfc
resets the drive in erases all the data only putting in data needed to operate the disk
format
what command would I use if a user’s been trying to start a computer but it won’t consistently start, when it does go on it doesn’t stay on long enough to perform tasks, there may be a virus, bad sectors, a number of problems. I explain to the user all data will be erased, get permission from the user, format the drives, reinstall the operating system, and check if it starts up with a newly formatted disk?
format
divide a hard drive into separate partitions that act like discs
diskpart, Linux: fdisk
what command would I use if a user wants to have windows running to be compatible with work computers but also have the ability to run Linux? create a partition for each in the computer can no start as a windows computer or a Linux computer depending on the user needs
diskpart, Linus: fdisk
tool that shuts down the local computer or other computers on the network
shutdown, linux: shutdown
reboots the computer into the firmware interface after shutdown
shutdown /fw