โ† All 010-160 Flashcard Decks

Linux Filesystem & File Management Flashcards

7 cards from real 010-160 practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Linux Filesystem & File Management flashcards as text
  1. What is the difference between a hard link and a symbolic link?

    Answer: Hard links share the same inode as the original; symbolic links store a path to the target

    Hard links reference the same inode as the original file, while symbolic links store a path string pointing to the target.

  2. Which command removes an empty directory?

    Answer: rmdir

    `rmdir` removes empty directories; it fails if the directory contains any files.

  3. What does `ls -la` show that `ls` alone does not?

    Answer: Long format details and hidden files

    `-l` enables long format (permissions, owner, size, date) and `-a` shows hidden files starting with a dot.

  4. In Linux, what character is used to separate directories in a file path?

    Answer: /

    Linux uses the forward slash `/` as the directory separator in file paths.

  5. Which command copies a directory and all its contents recursively?

    Answer: cp -r dir1 dir2

    `cp -r` (or `cp -R`) copies a directory and all its subdirectories and files recursively.

  6. What does the `wc -l` command count?

    Answer: Lines in a file

    `wc -l` counts the number of lines in a file or from standard input.

  7. Which command is used to view the contents of a text file one screen at a time?

    Answer: less

    `less` allows you to scroll through file contents one screen at a time, both forward and backward.