Complete the code to list all files in the current directory using the terminal.
ls [1]The -a option shows all files, including hidden ones, in the directory listing.
Complete the command to display the current working directory path.
[1]ls which lists files but does not show the path.cd which changes directory but does not display path.The pwd command prints the full path of the current directory you are in.
Fix the error in the command to copy a file named 'report.txt' to the folder 'backup'.
cp report.txt [1]To copy a file into a folder, specify the folder path ending with a slash. backup/ is the correct folder destination.
Fill both blanks to create a hidden file named '.config' using the terminal.
touch [1][2]
Hidden files in Linux start with a dot. So .config is a hidden file.
Fill both blanks to create a dictionary comprehension that maps file names to their lengths for files longer than 3 characters.
file_lengths = {: {BLANK_2}} for [2] in files if len({{BLANK_3}}) > 3This dictionary comprehension creates a dictionary where keys are file names and values are their lengths, only for files with names longer than 3 characters.