<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Sysadmin on Marek Slabicki</title>
		<link>https://thaniri.ca/tags/sysadmin/</link>
		<description>Recent content in Sysadmin on Marek Slabicki</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Sun, 26 Jan 2020 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://thaniri.ca/tags/sysadmin/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Chassing Sysadmin Interview Questions (Medium)</title>
				<link>https://thaniri.ca/blog/2020-01-26-chassing-linux-interview-medium/</link>
				<pubDate>Sun, 26 Jan 2020 00:00:00 +0000</pubDate>
				<guid>https://thaniri.ca/blog/2020-01-26-chassing-linux-interview-medium/</guid>
				<description>&lt;h1 id=&#34;linux-system-administratordevops-interview-questions&#34;&gt;Linux System Administrator/DevOps Interview Questions&lt;/h1&gt;&#xA;&lt;p&gt;I worked through the easy questions &lt;a href=&#34;https://thaniri.ca/blog/2019-01-01/&#34;&gt;last year&lt;/a&gt;. Since then I&amp;rsquo;ve studied for the LPIC 1 and 2 so I&amp;rsquo;m going to work through some more difficult material.&lt;/p&gt;&#xA;&lt;h2 id=&#34;medium-questions&#34;&gt;Medium Questions&lt;/h2&gt;&#xA;&lt;p&gt;The link to these questions can be found &lt;a href=&#34;https://github.com/chassing/linux-sysadmin-interview-questions#medium&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;What do the following commands do and how would you use them?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;tee: receives input and redirects it to both the terminal and an output file.&lt;/li&gt;&#xA;&lt;li&gt;awk: allows scanning of input (file or STDIN) for patterns. Useful for things like retrieving the nth column from a CSV file.&lt;/li&gt;&#xA;&lt;li&gt;tr: used to delete certain characters from text&lt;/li&gt;&#xA;&lt;li&gt;cut: used to remove a column from a file&lt;/li&gt;&#xA;&lt;li&gt;tac: prints a file but with the line numbers reversed&lt;/li&gt;&#xA;&lt;li&gt;curl: sends an HTTP request over the command line&lt;/li&gt;&#xA;&lt;li&gt;wget: fetches the result of on HTTP request over the command line&lt;/li&gt;&#xA;&lt;li&gt;watch: used before a command to keep running said command repeatedly and print the output each time&lt;/li&gt;&#xA;&lt;li&gt;head: looks at the first n rows of an input&lt;/li&gt;&#xA;&lt;li&gt;tail: looks at the last n rows of an input&lt;/li&gt;&#xA;&lt;li&gt;less: creates a buffer for an input which allows scrolling up and down the lines&lt;/li&gt;&#xA;&lt;li&gt;cat: mostly used to print the content of a file to a terminal, actually was originally designed to concatenate files together&lt;/li&gt;&#xA;&lt;li&gt;touch: used to create an empty file, can also be used to modify the access or modify time of a file&lt;/li&gt;&#xA;&lt;li&gt;sar: used to see resource usage (CPU, memory, disk IO) of the server at a point in time&lt;/li&gt;&#xA;&lt;li&gt;netstat: prints network information about the server, such as ports in use, network interfaces, routing tables&lt;/li&gt;&#xA;&lt;li&gt;tcpdump: records all of the packets going over a network interface&lt;/li&gt;&#xA;&lt;li&gt;lsof: checks for open file handles&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;br/&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;What does an &lt;code&gt;&amp;amp;&lt;/code&gt; after a command do?&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&amp;amp; after a command is meant to run the command in the background. This way a long running command is not blocking. If the parent process dies, this background command will still die as well.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Rename A Volume Group On Ubuntu 16.04</title>
				<link>https://thaniri.ca/blog/2019-12-01-rename-volume-group-ubuntu-1604/</link>
				<pubDate>Sun, 01 Dec 2019 00:00:00 +0000</pubDate>
				<guid>https://thaniri.ca/blog/2019-12-01-rename-volume-group-ubuntu-1604/</guid>
				<description>&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo vgrename &amp;lt;oldName&amp;gt; &amp;lt;newName&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo vgchange -ay&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Modify files that contain references to logical volumes from the old volume group:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/etc/fstab&lt;/li&gt;&#xA;&lt;li&gt;/boot/grub/grub.cfg&lt;/li&gt;&#xA;&lt;li&gt;/etc/initramfs-tools/conf.d/resume&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo update-initramfs -u -k all&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo shutdown -r now&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
			</item>
			<item>
				<title>Chassing Sysadmin Interview Questions (Easy)</title>
				<link>https://thaniri.ca/blog/2019-01-01/</link>
				<pubDate>Tue, 01 Jan 2019 00:00:00 +0000</pubDate>
				<guid>https://thaniri.ca/blog/2019-01-01/</guid>
				<description>&lt;h1 id=&#34;linux-system-administratordevops-interview-questions&#34;&gt;Linux System Administrator/DevOps Interview Questions&lt;/h1&gt;&#xA;&lt;h2 id=&#34;simple-questions&#34;&gt;Simple Questions&lt;/h2&gt;&#xA;&lt;p&gt;The link to these questions can be found &lt;a href=&#34;https://github.com/chassing/linux-sysadmin-interview-questions#simple&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;What is the name and the UID of the administrator user?&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Root. 0.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;How to list all files, including hidden ones, in a directory?&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;code&gt;ls -a&lt;/code&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;What is the Unix/Linux command to remove a directory and its contents?&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;code&gt;rm -r ./directory/&lt;/code&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Which command will show you free/used memory? Does free memory exist on Linux?&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;code&gt;htop&lt;/code&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
