Linux/Windows Commands Flashcards

(59 cards)

1
Q

Change directory (Windows/Linux command)

A

Windows CMD: cd
Linux: cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Linux command: List the contents of the current directory

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Linux command: Change the current working directory

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Linux command: Show the full path of the current directory

A

pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Linux command: Show the contents of one or more files

A

cat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Linux command: Create a .zip archive

A

zip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Linux command: View file contents one screen at a time

A

less

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Linux command: Show the first lines of a file

A

head

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Linux command: Show the last lines of a file

A

tail

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Linux command: Compare two files line by line and show differences

A

diff

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Linux command: Check if two files are identical

A

cmp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Linux command: Compare two sorted files and show common/unique lines

A

comm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Linux command: Sort the lines of a file or input

A

sort

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Linux command: Copy or convert data at a low level (e.g., disk cloning)

A

dd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Linux command: Change file or directory permissions

A

chmod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Linux command: Change the owner of a file or directory

A

chown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Linux command: Create a new user account

A

useradd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Linux command: Modify an existing user account

A

usermod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Linux command: Change a user’s password

A

passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Linux command: Show basic system info (kernel, OS, etc.)

A

uname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Linux command: Show the username of the current user

A

whoami

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Linux command: Show the full path to a command’s binary/source/man page

A

whereis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Linux command: Get a one-line description of a command

A

whatis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Linux command: View the manual for a command

25
Linux command: Show disk space usage for all file systems
df
26
Linux command: Show disk usage for files and directories
du
27
Linux command: Attach a file system to the file system tree
mount
28
Linux command: Display currently running processes
ps
29
Linux command: Show live processes and system resource usage
top
30
Linux command: Terminate a process by its PID
kill
31
Linux command: Terminate all processes with a specific name
killall
32
Linux command: Securely connect to a remote system
ssh
33
Linux command: Show network interfaces and IP addresses
ifconfig
34
Linux command: Trace the path network packets take
traceroute
35
Linux command: Download a file from the internet
wget
36
Linux command: Configure firewall with a user-friendly tool
ufw
37
Linux command: Configure the firewall with detailed rules
iptables
38
Linux command: Run a command as superuser (admin privileges)
sudo
39
Linux command: Start or stop system services
service
40
Linux command: Manage software packages (install, update, remove)
apt, pacman, yum, rpm
41
Linux command: Print a message or the value of a variable
echo
42
Linux command: Clear the terminal screen
clear
43
Linux command: Display a calendar in the terminal
cal
44
Linux command: Create a shortcut for a command
alias
45
Linux command: Set or export environment variables
export
46
Create a new directory (Windows/Linux command)
Windows: mkdir Linux: mkdir
47
Delete directory and all contents (Windows/Linux command)
Windows: rmdir /s Linux: rm -r
48
Move a file or directory (Windows/Linux command)
Windows: move Linux: mv
49
Rename a file or folder (Windows/Linux command)
Windows: rename Linux: mv
50
List directory contents (Windows/Linux command)
Windows: dir Linux: ls
51
Find a file using wildcard (e.g., *) (Windows/Linux command)
Windows: dir * Linux: find . -name '*'
52
Locate file path from system database (Windows/Linux command)
Windows: where Linux: locate
53
Print a document (Windows/Linux command)
Windows: print Linux: lp or lpr
54
Mount a file system (Windows/Linux command)
Windows: mountvol Linux: mount
55
Unmount a file system (Windows/Linux command)
Windows: mountvol /d Linux: umount
56
Check network connectivity (Windows/Linux command)
Windows: ping Linux: ping
57
View or configure IP settings (Windows/Linux command)
Windows: ipconfig Linux: ifconfig
58
Display file contents (Windows/Linux command)
Windows: type Linux: cat
59
Edit text from the command line (Windows/Linux command)
Windows: notepad (opens editor) Linux: sed