Data Engineering

Linux & Shell - Fundamentals

Essential commands, navigation, permissions, pipes, redirections, bash scripting, cron jobs

20 interview questionsยท
Junior
1

Which command displays the current working directory in a Linux terminal?

Answer

The pwd (print working directory) command displays the absolute path of the current directory. It is essential for locating oneself in the file tree, especially when navigating between multiple folders or in bash scripts.

2

How to go back to the parent directory of the current directory?

Answer

The cd .. command allows moving up one level in the file tree. The double dots (..) represent the parent directory, while a single dot (.) represents the current directory. This notation is universal in Unix/Linux systems.

3

Which command lists directory files including hidden files?

Answer

The -a (all) option of the ls command displays all files, including hidden files that start with a dot. Without this option, files like .bashrc, .gitignore or .env are not visible in the listing.

4

What does the notation 755 represent in Linux permissions?

5

Which command changes the owner of a file or directory?

+17 interview questions

Master Data Engineering for your next interview

Access all questions, flashcards, technical tests, code review exercises and interview simulators.

Start for free