Linux/Windows Commands Flashcards
(59 cards)
Change directory (Windows/Linux command)
Windows CMD: cd
Linux: cd
Linux command: List the contents of the current directory
ls
Linux command: Change the current working directory
cd
Linux command: Show the full path of the current directory
pwd
Linux command: Show the contents of one or more files
cat
Linux command: Create a .zip archive
zip
Linux command: View file contents one screen at a time
less
Linux command: Show the first lines of a file
head
Linux command: Show the last lines of a file
tail
Linux command: Compare two files line by line and show differences
diff
Linux command: Check if two files are identical
cmp
Linux command: Compare two sorted files and show common/unique lines
comm
Linux command: Sort the lines of a file or input
sort
Linux command: Copy or convert data at a low level (e.g., disk cloning)
dd
Linux command: Change file or directory permissions
chmod
Linux command: Change the owner of a file or directory
chown
Linux command: Create a new user account
useradd
Linux command: Modify an existing user account
usermod
Linux command: Change a user’s password
passwd
Linux command: Show basic system info (kernel, OS, etc.)
uname
Linux command: Show the username of the current user
whoami
Linux command: Show the full path to a command’s binary/source/man page
whereis
Linux command: Get a one-line description of a command
whatis
Linux command: View the manual for a command
man