bash_flashcards
1
Q
Command/Concept
A
Description/Usage
2
Q
cd
A
Changes the current directory
3
Q
ls
A
Lists directory contents
4
Q
grep
A
Searches text using patterns
5
Q
cat
A
Concatenates and displays file contents
6
Q
echo
A
Displays a line of text
7
Q
chmod
A
Changes file permissions
8
Q
pwd
A
Prints the current working directory
9
Q
> ,»_space;
A
Redirects output to a file (overwrite or append)
10
Q
|
A
Pipe: takes output from one command and passes it to another command
11
Q
&&, ||
A
Logical AND and OR for chaining commands
12
Q
if [ condition ]
A
Conditional execution based on a true/false condition
13
Q
for VAR in LIST
A
Loops through a list of values
14
Q
while [ condition ]
A
Loops as long as the condition is true
15
Q
break
A
Exits a loop