← Back to blogYouTube Video

Published December 1, 2026

Terminals are easy, actually

Can't play the video or having issues? Here's the direct link.

Summary

Non-technical people using Claude Code or Codex get asked to approve shell commands they don't understand, so I give a beginner's guide to deciding what to approve. I argue the approval layer matters because the agent doesn't have your context: a command can be harmless to your machine and still read a private file you'd rather not send to Anthropic's servers. I walk through four red flags: rm -rf, which permanently deletes with no recovery; sudo, which runs with administrator authority; curl piped into bash, which runs an unreviewed script from the internet; and any path outside the project folder. For anything unfamiliar, my take is to paste the command (or a screenshot) into ChatGPT, Claude or any LLM and ask what it does and what the worst case is. Critics will say you can't trust an LLM or that you still won't understand bash, but the models explain well and you don't have weeks to spend learning scripting. Do this repeatedly and you'll pick up the patterns passively. Never turn on the dangerously-skip-permissions flag.

Key takeaways

  • Treat rm -rf as a stop sign: it permanently deletes a folder or file, with no recycle bin and no way to recover it.
  • Be careful with sudo: it runs the command as an administrator with full authority over your machine, so make sure it's exactly what you want.
  • Never run curl piped into bash unless you trust the source: it downloads a script you haven't reviewed and runs every command in it on your machine.
  • Check any path outside your project folder: agents rarely need files beyond the project, so confirm it's reading or writing the right ones, even though there are legitimate cases.
  • Paste unfamiliar commands into an LLM and ask it to explain what the command does, what the worst case is, and whether it's safe to run. Ask follow-up questions as needed.
  • A command doesn't have to be destructive to be a problem: it may read private files you don't want sent to the model provider.
  • Learn passively: explaining commands a few times a day builds pattern recognition without weeks of study.
  • Never use dangerously skip permissions: keep the approval layer on so you can always reject a command you don't want run.

Description

A beginner's guide to the terminal for non-technical people who use Claude Code or Codex and get asked to approve commands they don't understand. I go through the red flags to watch for (rm -rf, sudo, curl piped into bash, and anything touching files outside your project folder), then show how to paste any unfamiliar command into an LLM and ask what it does and what the worst case is. I also explain why you should never turn on the flag that skips approvals.

Transcript

Auto-generated transcript
If you're a non-technical person and you want to understand how AI agents work and what kind of actions they're taking on your machine, if you're someone who's using like cloud code or codex and you've noticed that these models are running different sorts of commands on your machine and you don't know how they work and you just want to understand all that, this video is going to be for you. Because I'm making this video, beginner's guide to the CLI, for completely non-technical people who've never opened a terminal in their life and who just want to get work done using cloud code or codex you're going to find that these models run a bunch of shell commands on your machine right you open up cloud you give it some sort of a task it's going to work on that task and take various actions on your machine and on your behalf and then it's going to ask you to run some sort of a command like this over here right problem is you don't know what this command does and you don't know whether this is safe to run or not it could be a command that completely nukes your entire machine, deletes all your data or something. Or more realistically, because these models have been getting really good over the last couple of months, it could just be a very innocent looking command that just asks you to read a certain file, because cloud needs that information to, you know, process your task. Problem is, how do you decide whether these commands are safe to run or not? Because look, the command could be something as simple as cloud asking you to read a certain file that it needs to, you know, read. And the problem might be that that file contains private information about you or your company or your work that you don't necessarily want to send to Anthropix servers, right? This command isn't going to destroy your whole machine. It's not something dangerous to run, but it is something that you would prefer not to run, right? How do you find these commands? How do you make sure that you're proving the right ones and rejecting all the other ones. Because look, this stuff is pretty important. As intelligent as these models are, they don't have all the context that you do. Yeah, sure, they're not going to just completely wipe all of your system data, most probably not, because these models have gotten really good. But at the same time, they might take certain actions, read or write certain files, make certain changes that you didn't necessarily want them to. And they don't know because they don't have the context that you do. And so that's literally why most AI coding tools have this approval layer that asks you to approve or reject all of these different commands before they actually execute. So yeah, as a non-technical person, how should you start to understand these commands and decide whether to approve them or reject them Now my answer is going to be pretty controversial because the approach I going to recommend there a lot of people a lot of programmers who are going to completely reject that approach and who are going to flame me for even suggesting it, but it works. The first thing you need to do is just be very mindful of common red flags in commands. We just need to cover like these four really basic red flags and then I'm going to show you how to, you know, deal with any unfamiliar command. First thing you need to do, anytime your coding agent asks you to run rm-rf, anytime it wants to run this particular phrase, this particular command, be very, very vigilant. Why? Because this command is going to delete everything in a certain path or in a certain folder or file. And this isn't something like a recycle bin delete. This is a permanent delete. It just wipes that data from your machine. There is no way to recover it. So anytime your coding agent wants you to run a command that looks something like this, be careful. Secondly, anytime it wants you to run a command with sudo behind it, be careful because sudo basically means you're going to run that particular command as an administrator. You have complete authority over the machine. You can pretty much do any kind of damage or do any action on the machine if you're using sudo with that command. So if your coding agent wants you to run a command with sudo, just be very mindful that it is the command that you want it to run, right? And not something dangerous or inconvenient or stupid. Similarly, if it wants you to run a command like curl, and then pipe the output to bash, let me explain what that means. If you see something in your coding agent that basically says curl, and then some URL that takes you to a script file, like a JavaScript or a Python file or something, or a dot sh file, which is basically a bash script. And then it has this symbol over here. This is basically to pipe the output to send the output of curl into bash, right? What this is going to do, basically, in non-technical terms, is it's going to download a program or a script off of the internet that you have not reviewed, and you don't know what it does. And it's going to run that on your machine. All of the commands in that script, it's going to run all of them on your machine. You don't know whether that's safe or not. If you do, great, then run it. But if you don't, make sure you are reviewing this stuff, right? Or just make sure that you can trust the source that is providing these script files in the first place. And finally, anytime your coding agent wants you to operate on a path that is outside the project folder be vigilant about that too right Anytime it asks you to read or write a file that is outside the scope of your working area right Outside the scope of the project, you should just be mindful that this is the operation you want it to run. Because in most cases, the agent should not have to access files that are outside of the project folder. If it needs to do that, and you know, in many cases it does, there are certain cases that in which the coding agent does need to read files in different other projects or in, you know, system configuration files or something. There are legit use cases for this, obviously. It's just that it is kind of a red flag and you just need to be mindful that it is reading the right files and it is making the right changes that you actually want it to, right? Otherwise, you know, it can cause a bunch of problems and we don't want that. Now, with all those red flags covered, let's talk about how to actually deal with unfamiliar commands. Here's what I want you to do. Let's say you're running cloud, you gave it a task, it's going to do that task, it's going to run a bunch of actions on your machine, it's going to work on that task, and then it's going to give you a command like this to approve or reject. All I want you to do is just take that command, either copy it entirely, or just take a screenshot of it, paste it into chat GPT or cloud or any LLM that you use, and just ask it to explain this command and just tell you what's the worst thing that can happen if you actually run this command. The point of this is to literally get a explanation of this unique command, instead of trying to learn how, you know, scripting languages work, and all these different commands work under the hood, which is going to take you weeks and months, and you probably have better things to do than all that. Instead of that, literally just ask it to explain this particular command that you pasted, how it works, what it's going to do, what's the worst thing that can happen and whether it is safe to run or not. And of course, you can ask follow-up questions as well. But the point is, you're going to understand how this command works and you're going to be able to make an intelligent, informed decision about whether you should run this or not. There's a lot of people who are going to flame me for recommending this approach, saying things like, oh, you still don't understand how bash works or you still don't understand what the command is doing or you can't trust an LLM or all these other things. The point is, these models are pretty smart. And so if you just ask them for an explanation, they're probably going to give you a very good explanation. And you're going to be able to use that to make a good decision for your unique use cases with your particular context And besides I making this video for non technical people people who have other things to do besides sit there and stare at a screen and you know learn how Bash works or learn how programming languages work, right? They have better things to do. You have better things to do than this. So I'm not going to recommend you to, I don't know, fucking spend the next three weeks learning how terminals and Bash and programming languages and Python and all these things work, I'm not going to recommend an approach like that to you, because you probably have better things to do than this. So all I want you to do is take the command, paste it into ChatGPT, ask it to explain it, and then use that explanation to approve or reject that command. Now, the cool thing about this is if you do this like a couple times a day or however many times you need to, based on how much AI you're even using on a daily basis, if you do this multiple times a day, you're going to slowly start to build an understanding of these commands, you're going to, you know, notice patterns in the commands, like, hey, if if Claude runs a command that looks something like this, then this is what happens, right? You're going to start to notice patterns like these. And you're going to naturally learn all of these different commands passively and just develop a really good understanding of them without necessarily having to sit there for hours trying to learn all of these things by hand. So this is the better approach to approve or reject commands that cloud asks you to run. And also to learn and understand all of these commands without having to spend hours and days and weeks on the entire thing. One final note that I'll leave you with, don't use dangerously skip permissions. You probably know what this means, but I'll explain it anyway. It is a flag that you can pass into cloud or codex or any of these coding agents what it does is it's going to skip your approval when running commands on your machine you don't want this it gives cloud the power to execute commands on your machine without asking for your approval right it's probably really dangerous hence the name so just make sure this is off right you can approve all the commands as much as much as you want just always have that approval layer in case something goes wrong and the model asks you to or the model tries to run a dangerous or a command that you just don't want it to run, right? You should have the power to reject that command immediately. So keep this thing off. Use LLMs to explain commands and understand them and learn them and decide whether to approve or reject them. And be very mindful of the common red flags in terminal commands that your agent might be running. That's all for this video. Hope this helps. See ya.

Share this article

Hassan Aziz pointing up

Dude, you’re at the bottom of my landing page.

Just book a call already if you’re that interested.

You scrolled all the way here.

Book a free call on Calendly