Skip Navigation

What helps people get comfortable on the command line?

jvns.ca

What helps people get comfortable on the command line?

79 comments
  • Doing hackthebox or other CTF challenges, Using CLI software, writing bash scripts.

  • Really specific here, but font control.

    Us folks with dyslexia in its various expressions have trouble with command line. If you can't read a specific command, good luck ever getting comfortable with it. You can't error check yourself, so until you build up memory, you're kinda screwed if you can't use the fonts that are available.

  • Using computers since before GUI was available... Sometimes I think we ought to go back to it

  • tl;dr: Gradual exposure over time.

    I got used to it through work, as I had to ssh into a server to run simulations. That mainly involved navigating the file system and text editing (which I used vim for) to make some basic Python and bash scripts, including sed and awk. The latter two I never got comfortable using, and haven't really touched since.

    I was using macOS at the time, and after using that for work, the terminal in macOS got at first less scary and then a preferred way of accomplishing certain tasks. On my work Windows computer I started missing having a proper terminal around, and I eventually found Cygwin and later Git Bash to give me that terminal fix in Windows as well. Especially with the latter I noticed few differences and could use it to a large extent as I would have on my then Macbook.

    2-3 years ago I was in need of a new computer, and at that point a laptop with Linux on it was not a very scary prospect. That is by no way saying I went into Linux as an expert, far from it, and I am still very much a newbie - but opening the terminal to work with things is not at all a barrier, which helps a lot if you use Linux and want to be able to do some changes from the defaults. If you don't want that, I think you can go far these days without opening the terminal, but it is certainly a good skill to have.

  • Step 1: Use a youtube tutorial for the basic commands. Don't worry, you'll forget about them soon enough. But doing them once, helps with muscle memory.

    Step 2: When in need to do something, copy/paste from Q&A/forums various commands that they suggest for your problem. Your basic knowledge from step1 will come back as you do that.

    After a few days, you'll be understanding what's going on and how the whole thing works in an abstract level.

    • I would recommand to never copy paste but retype so you have the commands on your finger memory.

      Also don't be afraid to --help everything. It give more option for commands you know quicker than the man.

  • Virtual environment? Taking notes of what they did?

    Anyway, tell them it's okay you experiment and mess things up. Show them how to backup their important work. Then walk them through inevitably having to reinstall their distro.

    They'll learn that you can just keep moving forward, fixing and learning as you go.

79 comments