: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:
sshfsrsync 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 + Rpopd/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自动化工作流平台
无需编码,轻松生成可复用、可变现的AI自动化工作流

大模型驱动的Excel数据处理工具
基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。


AI辅助编程,代码自动修复
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。


AI论文写作指导平台
AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。


AI一键生成PPT,就用博思AIPPT!
博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。


AI赋能电商视觉革命,一站式智能商拍平台
潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。


企业专属的AI法律顾问
iTerms是法大大集团旗下法律子品牌,基于最先进的大语言模型(LLM)、专业的法律知识库和强大的智能体架构,帮助企业扫清合规障碍,筑牢风控防线,成为您企业专属的AI法律顾问。


稳定高效的流量提升解决方案,助力品牌曝光
稳定高效的流量提升解决方案,助力品牌曝光


最新版Sora2模型免费使用,一键生成无水印视频
最新版Sora2模型免费使用,一键生成无水印视频


实时语音翻译/同声传译工具
Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。
最新AI工具、AI资讯
独家AI资源、AI项目落地

微信扫一扫关注公众号