Complete the code to show the command that lists files in a directory.
ls [1]The ls -l command lists files with detailed information like permissions, owner, size, and modification date.
Complete the command to change the current directory to the home directory.
cd [1]The tilde ~ symbol represents the current user's home directory in Linux.
Fix the error in the command to display the current working directory.
[1]cd which changes directory instead of showing it.ls which lists files but does not show the current path.The pwd command prints the current working directory path.
Fill both blanks to create a command that shows the first 10 lines of a file named 'log.txt'.
[1] [2] log.txt
The head -10 command shows the first 10 lines of a file. By default, head shows 10 lines.
Fill all three blanks to create a command that finds all '.txt' files in the current directory and its subdirectories.
[1] . [2] '*.txt' [3]
The find command searches directories. The -name '*.txt' option filters files ending with '.txt'. The -type f option ensures only files (not directories) are found.