Command Line Flashcards
Change the owner and the group the file or folder is associated in Linux
chown
Syntax:
chown filename
chown : filename
Note requires super user permissions
Change file or folder permissions in Linux
chmod
Syntax:
chmod
r: 4
w: 2
x: 1
Rebuilds the boot sector for the active system partition in Windows
Bootrec /fixboot
Rebuilds the master boot record for the system partition in Windows
Bootrec /fixmbr
Looks for Windows installations not currently in the BCD store and shows you the results without doing anything
Bootrec /scanos
Looks for Windows installations not currently in the BCD store and gives you the choice to add them to the BCD store
Bootrec /rebuildmbr
Exports a copy of the BCD store to a file
Bcdedit /export
Imports a copy of the BCD store back into the store
Bcdedit /import
Display current path in Linux
pwd
Change a user’s password in Linux
passwd
Find out syntax and switches for a command in Window
[command name] /?
Find out syntax and switches for a command in Linux
man [command name]
Use of |
Symbol for pipe command
Extra text typed after a command to modify its operation
A switch
Meaning of symbol -
A switch in Linux
Meaning of symbol /
A switch in Windows
Display contents of the current working directory in Windows
dir
Display contents of the current working directory in Linux
ls
Change focus of command prompt from one directory to another in Windows and Linux
cd
Move between drives in Windows
Type the drive letter followed by a colon (:)
How to move back one in the path
cd..
Make directory
md or mkdir in Windows and mkdir in Linux
Remove directory
rd or rmdir in Windows and rmdir in Linux
Delete files in Linux
rm
Remove directory containing subdirectories and files in Linux
rm -r
Remove directory containing subdirectories and files in Windows
Rd /s
Use of * in Windows and Linux
Used as a wildcard
Delete files in Windows
del or erase
Copy a file in Windows
copy
Copy a file in Linux
cp
Move a file in Windows
move
Move a file in Linux
mv
Copy multiple directories at once in Windows
xcopy
Copy files and directories, even over a network
robocopy
Hard drive error detection and to a certain extent correction utility in Windows
chkdsk
Display the name of a computer in Windows
hostname
Make group policy changes immediate in Windows
gpupdate
List group policies applied to a user in Windows
gpresult
Scan, detect, and restore Windows system files, folders, and paths
sfc
View and change wireless settings in Linux
iwconfig
List all processes running on the computer in Linux
ps
Search through text files or command outputs to find specific information or filter out unneeded information in Linux
grep
Edit text files in Linux
vi
Copy entire block volume in Linux
dd
Install or update a program using the advanced packaging tool
apt-get