DevOps

Linux Fundamentals

File system, permissions, users & groups, package managers, systemd, logs, processes

22 câu hỏi phỏng vấn·
Junior
1

What is the /etc directory in Linux?

Câu trả lời

The /etc directory contains system and application configuration files installed on the system. It is a standard location where administrators find configuration files to modify to customize system behavior. Common files include /etc/passwd for users, /etc/hosts for local DNS resolution, and /etc/fstab for file system mounting.

2

What is the role of the /var directory in Linux?

Câu trả lời

The /var directory stores variable data that changes frequently during system operation. This includes logs in /var/log, caches in /var/cache, print spools in /var/spool, and local databases. The name var comes from variable because its content varies constantly unlike static files in /usr or /etc.

3

Which command lists files and directories in the current directory?

Câu trả lời

The ls command lists files and directories in the current directory. It can be used with various options like -l for detailed display showing permissions, -a to show hidden files starting with a dot, and -h to display sizes in human-readable format. It is one of the most commonly used Linux commands in daily work.

4

What does the first character represent in file permissions displayed by ls -l?

5

Which command changes the current working directory?

+19 câu hỏi phỏng vấn

Các chủ đề phỏng vấn DevOps khác

Nắm vững DevOps cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí