Core Linux shell commands for file navigation, permissions, and text processing, one command per card.
41 cards · basic cards · AI-written, checked twice. Edit anything.
- What command displays your current working directory?
- pwd
- How do you change to your home directory?
- cd ~ or cd
- What command changes the current directory?
- cd [path]
- How do you return to the previous directory?
- cd -
- What command lists files in the current directory?
- ls
- How do you list files with full details including permissions and size?
- ls -l
- How do you list all files including hidden ones?
- ls -a
- What command searches for files by name?
- find [path] -name [pattern]
- What command searches a file database for files?
- locate [filename]
- How do you display the entire contents of a text file?
- cat [filename]
- What command lets you scroll through a file one page at a time?
- less [filename]
- What command shows the first 10 lines of a file?
- head [filename]
- What command shows the last 10 lines of a file?
- tail [filename]
- How do you search for a text pattern within a file?
- grep [pattern] [filename]
- How do you search for a pattern across multiple files recursively?
- grep -r [pattern] [directory]