{"id":4634,"date":"2023-11-22T17:38:40","date_gmt":"2023-11-22T17:38:40","guid":{"rendered":"https:\/\/nikola-breznjak.com\/blog\/?p=4634"},"modified":"2023-11-22T19:32:12","modified_gmt":"2023-11-22T19:32:12","slug":"50-commands-chatgpt-thinks-you-should-know-about-terminal-aka-command-line","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/servers\/linux\/50-commands-chatgpt-thinks-you-should-know-about-terminal-aka-command-line\/","title":{"rendered":"50+ commands ChatGPT thinks you should know about Terminal aka Command Line"},"content":{"rendered":"<h1>TL;DR<\/h1>\n<p>Hey there and happy Wednesday* \ud83d\udc4b<\/p>\n<p><em>*a day on which, historically, most people wed on; thus: Wed nes day<\/em><br \/>\nNot really, but it would be a fun fact actually \ud83d\ude42<\/p>\n<p>OK, back on point; in this post, I&#8217;m going to take you through the basics of using the <strong>Terminal<\/strong> aka (as the cool kids using Windows call it) the <strong>Command Line<\/strong>. We&#8217;ll cover some basic commands, why it&#8217;s super useful, and how you can start flexing your command line muscles in no time!<\/p>\n<h1>Reality Check<\/h1>\n<p>Nowadays, on your first day at a new tech job, you probably aren&#8217;t going to be asked to &#8216;just SSH into the server and deploy the latest build.&#8217;. However, that doesn&#8217;t mean that knowing the basics of moving around the Linux system is something you shouldn&#8217;t learn. If nothing else, it&#8217;ll give you additional knowledge; and that&#8217;s why you came into this industry, right?<\/p>\n<p>Great, then let&#8217;s go \ud83d\udcaa<\/p>\n<h1>Why Terminal, You Ask?<\/h1>\n<p>Yes, the command line can seem intimidating with its blinking cursor and lack of buttons, but it\u2019s really not that scary. Think of it as a conversation with your computer \u2013 you just need to know the right words.<\/p>\n<h1>Installing the Terminal \ud83d\ude0f<\/h1>\n<p>Usually, you don&#8217;t need to install it; it comes with your operating system. But if you&#8217;re on Windows, you might want to look into installing something like Git Bash or PowerShell for a better experience. Or, better yet (if you don&#8217;t have a Linux server handy), try it out in a sandbox&#8230;<\/p>\n<h1>Experimenting in the Sandbox<\/h1>\n<p>The best way to learn is by doing. Don&#8217;t be afraid to experiment with commands.<\/p>\n<p>The worst that can happen? You might delete your whole system \ud83d\ude42. So, I suggest using something like <a href=\"https:\/\/cocalc.com\/\">https:\/\/cocalc.com\/<\/a> (there are many more options like this, Google them) to test it out in a so-called sandbox environment.<\/p>\n<h1>Essentials<\/h1>\n<h2>1. Opening the Terminal<\/h2>\n<p>First things first. To start using the Terminal, you need to open it. On macOS, you&#8217;ll find it in <code>Applications &gt; Utilities<\/code>. Windows folks, look for <code>Command Prompt<\/code><code> or <\/code>PowerShell`. Linux users, you probably already know what you&#8217;re doing \ud83d\ude42<\/p>\n<h2>2. The Basic Commands<\/h2>\n<ul>\n<li><strong>pwd<\/strong> (Print Working Directory)\n<ul>\n<li>This command tells you where you are. It&#8217;s like asking, &quot;Hey Terminal, where the heck am I in this file system maze?&quot;<\/li>\n<li>You&#8217;ll get an output something like: <code>\/home\/nikola<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>ls<\/strong> (List)\n<ul>\n<li>Want to know what files are lurking in the current directory? Just type <code>ls<\/code>. It&#8217;s like peeking into a room to see what&#8217;s inside.<\/li>\n<\/ul>\n<\/li>\n<li><strong>cd<\/strong> (Change Directory)\n<ul>\n<li>Need to move around? Use <code>cd<\/code> followed by the directory&#8217;s path. It&#8217;s your &#8216;teleport&#8217; command.<\/li>\n<li>If you press ENTER after just the <code>cd<\/code> command, it will place you in your home directory (<code>\/home\/nikola<\/code> in my case)<\/li>\n<\/ul>\n<\/li>\n<li><strong>mkdir<\/strong> (Make Directory)\n<ul>\n<li>To create a new folder, use <code>mkdir<\/code> followed by the name you want to give it. It&#8217;s like conjuring a box out of thin air.<\/li>\n<li>For example: <code>mkdir newFolder<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>3. Editing and Viewing Files<\/h2>\n<ul>\n<li><strong>touch<\/strong>\n<ul>\n<li>Create an empty file; for example: <code>touch file.md<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>nano<\/strong>, <strong>vim<\/strong>, or <strong>emacs<\/strong>\n<ul>\n<li>These are text editors available right in the Terminal. It might not be as fancy as your VS Code, but it gets the job done. For example, to open the file <code>file.md<\/code> type <code>nano file.md<\/code><\/li>\n<li>If you&#8217;re really just starting out, go with <code>nano<\/code>, or be lost in vim forever <\/li>\n<li><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/AoX2x7f.png\" alt=\"\" \/><\/li>\n<li>Jokes aside, there&#8217;s a certain level of satisfaction and productivity among folks that master vim<\/li>\n<\/ul>\n<\/li>\n<li><strong>cat<\/strong> (Concatenate)\n<ul>\n<li>Want to quickly view the contents of a file? <code>cat<\/code> followed by the file name will display it for you. No need to open it in an editor.<\/li>\n<li>Example: <code>cat file.md<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>4. File Manipulation<\/h2>\n<ul>\n<li><strong>cp<\/strong> (Copy)\n<ul>\n<li>Use this to copy files or directories.<\/li>\n<li>Example: <code>cp file.md file-copy.md<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>mv<\/strong> (Move)\n<ul>\n<li>Use this to move or rename files or directories.<\/li>\n<li>Example: <code>cp file.md file2.md<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>rm<\/strong> (Remove)\n<ul>\n<li>\u26a0\ufe0f Be careful with this one as it deletes files or directories. There&#8217;s no going back, so use it wisely!<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>5. Getting Help<\/h2>\n<ul>\n<li><strong>man<\/strong> (Manual)\n<ul>\n<li>Stuck with what a command does? Type <code>man<\/code> followed by the command, and you&#8217;ll get a detailed manual. It&#8217;s like asking for directions.<\/li>\n<li>Example: <code>man ls<\/code> will give you all the info about the <code>ls<\/code> command<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>6. The Power Moves<\/h2>\n<ul>\n<li><strong>echo<\/strong>\n<ul>\n<li>output to the console whatever you put in quotes<\/li>\n<li>Example: <code>echo &quot;testing&quot;<\/code> will output &#8216;testing&#8217; to the console output<\/li>\n<\/ul>\n<\/li>\n<li><strong>&gt;<\/strong>\n<ul>\n<li>redirect the output of a command to another file or program<\/li>\n<li>Example: <code>echo &quot;testing&quot; &gt; file.md<\/code> will overwrite the <code>file.md<\/code> with the word &#8216;testing&#8217;<\/li>\n<li>If you want to append, instead of overwrite, use <strong>&gt;&gt;<\/strong><\/li>\n<\/ul>\n<\/li>\n<li><strong>grep<\/strong>\n<ul>\n<li>This command lets you search through files for specific text. It&#8217;s like having a searchlight.<\/li>\n<li>Example: <code>grep &#039;testing&#039; file.md<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>|<\/strong> (Pipe)\n<ul>\n<li>This symbol is used to take the output of one command and use it as the input for another. It&#8217;s like connecting Lego blocks to build something cool.<\/li>\n<li>Example: <code>ls | grep &quot;myFile&quot;<\/code><\/li>\n<li>this command sequence will list all files and directories, but only display those whose names include &quot;myFile&quot;.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>7. SSH and Remote Servers<\/h2>\n<ul>\n<li><strong>ssh<\/strong> (Secure Shell)\n<ul>\n<li>This is how you remotely log into another machine. It&#8217;s like teleporting to a different computer.<\/li>\n<li>Example: <code>ssh -p port_number username@remote_host<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>8. Understanding File Paths<\/h2>\n<p>File paths can be tricky for beginners. Remember, there are <strong>absolute paths<\/strong> (which start from the root directory aka <strong>\/<\/strong>) and relative paths (which start from your current directory). For example, <code>\/Users\/nikola\/Documents<\/code> is an absolute path, while <code>Documents<\/code> from your home directory is a relative path.<\/p>\n<p>If you&#8217;re currently positioned in <code>\/var\/www<\/code>, then doing <code>cd Documents<\/code> will probably give you an error that the <code>Documents<\/code> folder doesn&#8217;t exist. However, if you use the full path (<code>cd \/Users\/nikola\/Documents<\/code>), it will work.<\/p>\n<h2>9. Advanced File Operations<\/h2>\n<ul>\n<li><strong>find<\/strong>\n<ul>\n<li>A powerful tool for searching files and directories. It&#8217;s like having a GPS for your files.<\/li>\n<li>Examples:<\/li>\n<li><code>find . -name &quot;filename.txt&quot;<\/code> &#8211; find files by name<\/li>\n<li><code>find \/path\/to\/search -name &quot;*.txt&quot;<\/code> &#8211; find files with a specific parttern<\/li>\n<li><code>find \/path\/to\/search -size +100M<\/code> &#8211; find files based on size<\/li>\n<li><code>find \/path\/to\/search -perm 644<\/code> &#8211; find files with a certain permission<\/li>\n<\/ul>\n<\/li>\n<li><strong>locate<\/strong>\n<ul>\n<li>Used for finding the location of files and directories<\/li>\n<li>Example: <code>locate filename.md<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>10. Networking Commands<\/h2>\n<ul>\n<li><strong>ping<\/strong>\n<ul>\n<li>Check if you can reach another computer or server.<\/li>\n<li>Example: <code>ping example.com<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>curl<\/strong>\n<ul>\n<li>Fetch data from or send data to a server, especially useful for testing APIs.<\/li>\n<li>Examples:<\/li>\n<li><code>curl http:\/\/example.com<\/code> &#8211; fetch a web page<\/li>\n<li><code>curl -O http:\/\/example.com\/somefile.zip<\/code> &#8211; download a file<\/li>\n<li><code>curl -d &quot;param1=value1&amp;param2=value2&quot; -X POST http:\/\/example.com\/form<\/code> &#8211; send POST data<\/li>\n<li><code>curl -H &quot;Content-Type: application\/json&quot; -X POST -d &#039;{&quot;username&quot;:&quot;xyz&quot;,&quot;password&quot;:&quot;xyz&quot;}&#039; http:\/\/example.com\/api\/login<\/code> &#8211; pass headers<\/li>\n<li><code>curl -b &quot;name=value&quot; http:\/\/example.com<\/code> &#8211; use cookies<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>Additional things that could be useful to you<\/h1>\n<h2>11. Exploring Environment Variables<\/h2>\n<ul>\n<li>Environment variables are <strong>key-value pairs<\/strong> used by your operating system to manage various system properties. They come in handy for storing data like file paths and configurations.<\/li>\n<li>Example: use <code>echo $VARIABLE_NAME<\/code> to view the value of an environment variable, and <code>export VARIABLE_NAME=value<\/code> to set one.<\/li>\n<\/ul>\n<h2>12. File Compression and Archiving<\/h2>\n<ul>\n<li><strong>tar<\/strong>, <strong>gzip<\/strong>, <strong>zip<\/strong>\n<ul>\n<li>These commands are used for compressing and decompressing files. They are crucial for managing file sizes and preparing data for transfer.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>13. Remote File Transfer<\/h2>\n<ul>\n<li><strong>scp<\/strong> (Secure Copy)\n<ul>\n<li>A command for securely transferring files between your local machine and a remote server. It&#8217;s like FedEx for your files.<\/li>\n<li>Example: <code>scp username@remote_host:\/path\/to\/remote\/file.txt \/path\/to\/local\/directory<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>rsync<\/strong>\n<ul>\n<li>A utility for efficiently transferring and synchronizing files across computer systems.<\/li>\n<li>Example: <code>rsync -av \/path\/to\/local\/dir username@remote_host:\/path\/to\/remote\/dir<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>14. Monitoring Disk Usage<\/h2>\n<ul>\n<li><strong>df<\/strong>\n<ul>\n<li>Displays the amount of disk space used and available on your file systems.<\/li>\n<\/ul>\n<\/li>\n<li><strong>du<\/strong>\n<ul>\n<li>Estimates the space used by files and directories.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>15. Managing Processes<\/h2>\n<ul>\n<li><strong>ps<\/strong>\n<ul>\n<li>Reports a snapshot of the current processes.<\/li>\n<\/ul>\n<\/li>\n<li><strong>kill<\/strong>\n<ul>\n<li>Send a signal to a process, typically used to stop a process.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>16. Networking and Port Management<\/h2>\n<ul>\n<li><strong>netstat<\/strong>\n<ul>\n<li>Displays network connections, routing tables, and interface statistics.<\/li>\n<\/ul>\n<\/li>\n<li><strong>ifconfig<\/strong>\n<ul>\n<li>Used to configure, or view the configuration of, a network interface.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>17. Exploring System Logs<\/h2>\n<ul>\n<li>Logs are a goldmine of information. Use <strong>cat<\/strong> or <strong>less<\/strong> to view log files typically stored in <strong>\/var\/log<\/strong> and understand what\u2019s happening under the hood.<\/li>\n<\/ul>\n<h2>18. Crontab for Scheduling Tasks<\/h2>\n<ul>\n<li><strong>crontab<\/strong> is used for scheduling tasks to run at specific times. It\u2019s like setting a smart alarm for your scripts.\n<ul>\n<li>Examples<\/li>\n<li>with <code>crontab -e<\/code> command, you&#8217;ll be able to edit the crontab file<\/li>\n<li>if you want to run a script <code>\/path\/to\/script.sh<\/code> every day at 5:30 PM, you would add the following line: <code>30 17 * * * \/path\/to\/script.sh<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>19. Command History<\/h2>\n<ul>\n<li>Your Terminal remembers your past commands. Use the <code>history<\/code> command to recall previous commands or <code>Ctrl + R<\/code> to search through your command history interactively.<\/li>\n<\/ul>\n<h2>20. Linking Directories with Symbolic Links:<\/h2>\n<ul>\n<li><strong>ln -s<\/strong>\n<ul>\n<li>create symbolic links to files and directories. It\u2019s like creating shortcuts.<\/li>\n<li>Example: <code>ln -s \/path\/to\/original.txt \/path\/to\/link.txt<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>21. Managing Users and Groups<\/h2>\n<ul>\n<li><strong>useradd<\/strong>, <strong>usermod<\/strong>, <strong>groupadd<\/strong>\n<ul>\n<li>These commands are used for creating and modifying users and groups. They&#8217;re important for managing access on multi-user systems.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>22. Disk Partitioning and Mounting<\/h2>\n<ul>\n<li><strong>fdisk<\/strong>, <strong>mount<\/strong>\n<ul>\n<li>These commands are for managing disk partitions and mounting filesystems. They&#8217;re essential for organizing and accessing different storage devices.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>23. Networking with nc and telnet<\/h2>\n<ul>\n<li><strong>nc<\/strong> and <strong>telnet<\/strong>\n<ul>\n<li>These tools can be used for various network operations like port scanning, sending raw data to ports, etc.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>24. Advanced Text Processing<\/h2>\n<ul>\n<li><strong>cut<\/strong>, <strong>sort<\/strong>, <strong>uniq<\/strong>, <strong>tr<\/strong>\n<ul>\n<li>These text-processing commands are powerful tools for data analysis and manipulation in the command line. Check them out<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>25. System Information Commands<\/h2>\n<ul>\n<li><strong>uname<\/strong>, <strong>lscpu<\/strong>, <strong>lshw<\/strong>\n<ul>\n<li>These commands provide detailed information about your system\u2019s hardware and software configuration.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>26. Learn\/Customize Terminal Shortcuts<\/h2>\n<ul>\n<li>Learn keyboard shortcuts for your Terminal for efficiency.<\/li>\n<li>Examples:\n<ul>\n<li><strong>Ctrl + A<\/strong> to go to the beginning of the line<\/li>\n<li><strong>Ctrl + E<\/strong> for the end<\/li>\n<li><strong>Ctrl + K<\/strong> to delete from cursor to the end<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>27. Checking System Health and Resources<\/h2>\n<ul>\n<li><strong>vmstat<\/strong>, <strong>iostat<\/strong>\n<ul>\n<li>Use these commands to monitor system performance and resource utilization.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>28. Exploring System Services and Daemons<\/h2>\n<ul>\n<li><strong>systemctl<\/strong>, <strong>service<\/strong>\n<ul>\n<li>These commands help you manage system services and daemons in Linux.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>29. Filesystem Check and Repair<\/h2>\n<ul>\n<li><strong>fsck<\/strong>\n<ul>\n<li>Check and repair Linux filesystems. It\u2019s an essential tool for system maintenance.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>30. Securely Deleting Files<\/h2>\n<ul>\n<li><strong>shred<\/strong>\n<ul>\n<li>Securely delete files from your filesystem so that they are nearly impossible to recover.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>13 additional things you could look into<\/h2>\n<ul>\n<li><strong>Customizing Your Terminal<\/strong>\n<ul>\n<li>You can customize the look and feel of your Terminal. Play around with <strong>.bashrc<\/strong> or <strong>.zshrc<\/strong> (depending on your so-called <em>shell<\/em>) to change your prompt, add aliases for commands, or even add some fun colors.<\/li>\n<li>Or, just install <a href=\"https:\/\/ohmyz.sh\/\">Oh My ZSH!<\/a><\/li>\n<\/ul>\n<\/li>\n<li><strong>Scripting and Automation<\/strong>\n<ul>\n<li>Once you&#8217;re comfortable, start exploring shell scripting. You can automate repetitive tasks with simple scripts, making your life a whole lot easier.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Version Control with Git<\/strong>\n<ul>\n<li>The Terminal is a friend of Git, a popular version control system. Here&#8217;s one tutorial I wrote: <a href=\"https:\/\/nikola-breznjak.com\/blog\/miscellaneou\/learn-git-fast-job-depends\/\">Learn Git fast as if your job depends on it<\/a><\/li>\n<\/ul>\n<\/li>\n<li><strong>Understanding Permissions<\/strong>\n<ul>\n<li>Files and directories have permissions that determine who can read, write, or execute them. Commands like <strong>chmod<\/strong> and <strong>chown<\/strong> help you manage these permissions.<\/li>\n<\/ul>\n<\/li>\n<li><strong>System Information and Monitoring<\/strong>\n<ul>\n<li><strong>top<\/strong> or <strong>htop<\/strong><\/li>\n<li>These commands give you a real-time overview of what your system is up to. It&#8217;s like a dashboard for your computer&#8217;s engine.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Working with Text<\/strong>\n<ul>\n<li><strong>awk<\/strong>, <strong>sed<\/strong><\/li>\n<li>These are text-processing utilities. They&#8217;re complex but incredibly powerful for manipulating text files.<\/li>\n<\/ul>\n<\/li>\n<li><strong>The Power of Wildcards<\/strong>\n<ul>\n<li>Learn how to use wildcards (*<strong>** and <\/strong>?**) for matching file patterns. It&#8217;s like casting a net to catch specific files.<\/li>\n<\/ul>\n<\/li>\n<li><strong>The Almighty Root User<\/strong>\n<ul>\n<li>Be cautious with the <strong>sudo<\/strong> command \u2013 it gives you <strong>root<\/strong> (administrator) privileges. With great power comes great responsibility.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Package Management<\/strong>\n<ul>\n<li>Get familiar with package managers like <strong>apt<\/strong> for Ubuntu or <strong>brew<\/strong> for macOS. They are like app stores for your Terminal.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Understanding Filesystem Hierarchy<\/strong>\n<ul>\n<li>Explore the standard filesystem hierarchy in Linux\/Unix systems (<strong>\/etc<\/strong> for configurations, <strong>\/var<\/strong> for variable files, <strong>\/home<\/strong> for user directories). It\u2019s like learning the layout of a new city.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Understanding the Root Directory Structure<\/strong>\n<ul>\n<li>Each directory under <strong>\/<\/strong> (root) in Unix-like systems has a specific purpose (<strong>\/bin<\/strong> for binaries, <strong>\/lib<\/strong> for libraries). Knowing this structure helps you navigate the filesystem more efficiently.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Exploring Regular Expressions<\/strong>\n<ul>\n<li>Regular expressions are patterns used to match character combinations in text. They are a powerful tool in command-line text processing.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Exploring Different Filesystems<\/strong>\n<ul>\n<li>Learn about different filesystems (ext4, NTFS, FAT32) and their characteristics.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>Conclusion<\/h1>\n<p>There you have it \u2013 an extensive beginner&#8217;s guide to the Terminal, pushing well past the basics.<\/p>\n<p>Remember, it&#8217;s all about practice and exploration. The command line is a powerful tool in your developer toolkit, so embrace it, play with it, and watch as your computer skills reach new heights. <\/p>\n<p>Welcome to the club of command line aficionados, and as always, happy coding! \ud83d\udcaa<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR Hey there and happy Wednesday* \ud83d\udc4b *a day on which, historically, most people wed on; thus: Wed nes day Not really, but it would be a fun&hellip;<\/p>\n","protected":false},"author":1,"featured_media":4636,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-4634","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/4634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=4634"}],"version-history":[{"count":0,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/4634\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/4636"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=4634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=4634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=4634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}