:information_source: This project contains 284 test questions and answers that can be used as a test your knowledge or during an interview/exam for position such as Linux (*nix) System Administrator.
:heavy_check_mark: The answers are only examples and do not exhaust the whole topic. Most of them contains useful resources for a deeper understanding.
:warning: Questions marked ***
don't have answer yet or answer is incomplete - make a pull request to add them!
:traffic_light: If you find something which doesn't make sense, or something doesn't seem right, please make a pull request and please add valid and well-reasoned explanations about your changes or comments.
:books: In order to improve your knowledge/skills please see devops-interview-questions. It looks really interesting.
<br> <p align="center"> » <b><code><a href="https://github.com/trimstray/test-your-sysadmin-skills/issues">All suggestions are welcome</a></code></b> « </p> <br><b><u>The type of chapter</u></b> | <b><u>Number of questions</u></b> | <b><u>Short description</u></b> |
---|---|---|
<b>Introduction</b> | ||
:small_orange_diamond: Simple Questions | 14 questions | Relaxed, fun and simple - are great for starting everything. |
<b>General Knowledge</b> | ||
:small_orange_diamond: Junior Sysadmin | 65 questions | Reasonably simple and straight based on basic knowledge. |
:small_orange_diamond: Regular Sysadmin | 94 questions | The mid level of questions if that you have sound knowledge. |
:small_orange_diamond: Senior Sysadmin | 99 questions | Hard questions and riddles. Check it if you want to be good. |
<b>Secret Knowledge</b> | ||
:small_orange_diamond: Guru Sysadmin | 12 questions | Really deep questions are to get to know Guru Sysadmin. |
My favorite Linux distribution:
Useful resources:
</details> <details> <summary><b>What are the differences between Unix, Linux, BSD, and GNU?</b></summary><br>GNU isn't really an OS. It's more of a set of rules or philosophies that govern free software, that at the same time gave birth to a bunch of tools while trying to create an OS. So GNU tools are basically open versions of tools that already existed, but were reimplemented to conform to principals of open software. GNU/Linux is a mesh of those tools and the Linux kernel to form a complete OS, but there are other GNUs, e.g. GNU/Hurd.
Unix and BSD are "older" implementations of POSIX that are various levels of "closed source". Unix is usually totally closed source, but there are as many flavors of Unix as there are Linux (if not more). BSD is not usually considered "open", but it was considered to be very open when it was released. Its licensing also allowed for commercial use with far fewer restrictions than the more "open" licenses of the time allowed.
Linux is the newest of the four. Strictly speaking, it's "just a kernel"; however, in general, it's thought of as a full OS when combined with GNU Tools and several other core components.
The main governing differences between these are their ideals. Unix, Linux, and BSD have different ideals that they implement. They are all POSIX, and are all basically interchangeable. They do solve some of the same problems in different ways. So other then ideals and how they choose to implement POSIX standards, there is little difference.
For more info I suggest your read a brief article on the creation of GNU, OSS, Linux, BSD, and UNIX. They will be slanted towards their individual ideas, but those articles should give you a better idea of the differences.
Useful resources:
CLI is an acronym for Command Line Interface or Command Language Interpreter. The command line is one of the most powerful ways to control your system/computer.
In Unix like systems, CLI is the interface by which a user can type commands for the system to execute. The CLI is very powerful, but is not very error-tolerant.
The CLI allows you to do manipulations with your system’s internals and with code in a much more fine-tuned way. It offers greater flexibility and control than a GUI regardless of what OS is used. Many programs that you might want to use in your software that are hosted on say Github also require running some commands on the CLI in order to get them running.
My favorite tools
screen
- free terminal multiplexer, I can start a session and My terminals will be saved even when you connection is lost, so you can resume later or from homessh
- the most valuable over-all command to learn, I can use it to do some amazing things:
sshfs
rsync
server with no rsync
deamon by starting one itself via sshvi/vim
- is the most popular and powerful text editor, it's universal, it's work very fast, even on large filesbash-completion
- contains a number of predefined completion rules for shellTips & Hacks
CTRL + R
popd/pushd
and other shell builtins which allow you manipulate the directory stackCTRL + U
, CTRL + E
!*
- all arguments of last command!!
- the whole of last command!ssh
- last command starting with sshUseful resources:
BASH is my favorite. It’s really a preferential kind of thing, where I love the syntax and it just "clicks" for me. The input/output redirection syntax (>>
, << 2>&1
, 2>
, 1>
, etc) is similar to C++ which makes it easier for me to recognize.
I also like the ZSH shell, because is much more customizable than BASH. It has the Oh-My-Zsh framework, powerful context based tab completion, pattern matching/globbing on steroids, loadable modules and more.
Useful resources:
</details> <details> <summary><b>How do you get help on the command line? ***</b></summary><br>man
[commandname] can be used to see a description of a command (ex.: man less
, man cat
)
-h
or --help
some programs will implement printing instructions when passed this parameter (ex.: python -h
and python --help
)
w
- a lot of great information in there with the server uptimetop
- you can see all running processes, then order them by CPU, memory utilization and morenetstat
- to know on what port and IP your server is listening on and what processes are using thosedf
- reports the amount of available disk space being used by file systemshistory
- tell you what was previously run by the user you are currently connected toUseful resources:
</details> <details> <summary><b>What do the fields in <code>ls -al</code> output mean?</b></summary><br>In the order of output:
-rwxrw-r-- 1 root root 2048 Jan 13 07:11 db.dump
File permissions is displayed as following:
-
or l
or d
, d
indicates a directory, a -
represents a file, l
is a symlink (or soft link) - special type of filer
= readablew
= writablex
= executableIn your example -rwxrw-r--
, this means the line displayed is:
-
)rwx
)rw-
)r--
)Useful resources:
</details> <details> <summary><b>How do you get a list of logged-in users?</b></summary><br>For a summary of logged-in users, including each login of a username, the terminal users are attached to, the date/time they logged in, and possibly the computer from which they are making the connection, enter:
# It uses /var/run/utmp and /var/log/wtmp files to get the details. who
For extensive information, including username, terminal, IP number of the source computer, the time the login began, any idle time, process CPU cycles, job CPU cycles, and the currently running command, enter:
# It uses /var/run/utmp, and their processes /proc. w
Also important for displays a list of last logged in users, enter:
# It uses /var/log/wtmp. last
Useful resources:
</details> <details> <summary><b>What is the advantage of executing the running processes in the background? How can you do that?</b></summary><br>The most significant advantage of executing the running process in the background is that you can do any other task simultaneously while other processes are running in the background. So, more processes can be completed in the background while you are working on different processes. It can be achieved by adding a special character &
at the end of the command.
Generally applications that take too long to execute and doesn't require user interaction are sent to background so that we
AI辅助编程,代码自动修复
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。
AI小说写作助手,一站式润色、改写、扩写
蛙蛙写作—国内先进的AI写作平台,涵盖小说、学术、社交媒体等多场景。提供续写、改写、润色等功能,助力创作者高效优化写作流程。界面简洁,功能全面,适合各类写作者提升内容品质和工作效率。
全能AI智能助手,随时解答生活与工作的多样问题
问小白,由元石科技研发的AI智能助手,快速准确地解答各种生活和工作问题,包括但不限于搜索、规划和社交互动,帮助用户在日常生活中提高效率,轻松管理个人事务。
实时语音翻译/同声传译工具
Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。
一键生成PPT和Word,让学习生活更轻松
讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。
深度推理能力全新升级,全面对标OpenAI o1
科大讯飞的星火大模型,支持语言理解、知识问答和文本创作等多功能,适用于多种文件和业务场景,提升办公和日常生活的效率。讯飞星火是一个提供丰富智能服务的平台,涵盖科技资讯、图像创作、写作辅助、编程解答、科研文献解读等功能,能为不同需求的用户提供便捷高效的帮助,助力用户轻松获取信息、解决问题,满足多样化使用场景。
一种基于大语言模型的高效单流解耦语音令牌文本到语音合成模型
Spark-TTS 是一个基于 PyTorch 的开源文本到语音合成项目,由多个知名机构联合参与。该项目提供了高效的 LLM(大语言模型)驱动的语音合成方案,支持语音克隆和语音创建功能,可通过命令行界面(CLI)和 Web UI 两种方式使用。用户可以根据需求调整语音的性别、音高、速度等参数,生成高质量的语音。该项目适用于多种场景,如有声读物制作、智能语音助手开发等。
AI助力,做PPT更简单!
咔片是一款轻量化在线演示设计工具,借助 AI 技术,实现从内容生成到智能设计的一站式 PPT 制作服务。支持多种文档格式导入生成 PPT,提供海量模板、智能美化、素材替换等功能,适用于销售、教师、学生等各类人群,能高效制作出高品质 PPT,满足不同场景演示需求。
选题、配图、成文,一站式创作,让内容运营更高效
讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。
专业的AI公文写作平台,公文写作神器
AI 材料星,专业的 AI 公文写作辅助平台,为体制内工作人员提供高效的公文写作解决方案。拥有海量公文文库、9 大核心 AI 功能,支持 30 + 文稿类型生成,助力快速完成领导讲话、工作总结、述职报告等材料,提升办公效率,是体制打工人的得力写作神器。
最新AI工具、AI资讯
独家AI资源、AI项目落地
微信扫一扫关注公众号