15 posts tagged with "unix"

    zsh: suspended jobs

    2022-11-28

     | 

    ~1 min read

     | 

    147 words

    I tried exiting a zsh terminal recently when I was greeted by a new error: What are the jobs? Well, zsh has a built-in command which will…

    bash-formatting-dates

    2022-11-28

     | 

    ~2 min read

     | 

    324 words

    I was working on updating a small shell script I have to create a new note and I wanted to include the date. That led me to discover the…

    killing processes

    2022-11-28

     | 

    ~2 min read

     | 

    262 words

    UNIX systems come with a utility, which, as might be expected, terminates processes. I wrote about it previously in the context of killing…

    case insensitive grep (aka ignoring case)

    2022-11-28

     | 

    ~2 min read

     | 

    214 words

    “Grepping” a stream of data is a powerful way to cut through the noise (I’ve written previously about its role in digging through git logs…

    file permissions in unix

    2022-11-28

     | 

    ~7 min read

     | 

    1318 words

    Update: I recently came across Julia Evans’ Unix Permissions zine. If you’re a visual learner, it’s a great resource! When I first…

    compression basics: zip, tar, rar, and gz

    2022-11-28

     | 

    ~5 min read

     | 

    853 words

    What are the differences between a , , ., and ? It turns out it’s both a lot and a little. Some basics: represents a compressed archive of…

    sed: grep's successor for substitution

    2022-11-28

     | 

    ~2 min read

     | 

    376 words

    In Git Log Archeology/ Digging In With Grep And Pickaxe, I noted that the utility is an acronym for “_g_lobally search for a _r_egular _e…

    bring the background job back to the foreground

    2022-11-28

     | 

    ~1 min read

     | 

    199 words

    If you start running processes in the background, at some point, you may find you want to bring it back into focus. The utility seems…

    making space in the terminal: different strategies

    2022-11-28

     | 

    ~2 min read

     | 

    372 words

    When a terminal window gets busy, sometimes, it’s nice to make a little breathing so that it’s easier to see what’s going on. There are a…

    determine which shell is currently running

    2022-11-28

     | 

    ~1 min read

     | 

    79 words

    If you switch between shells, it might be handy to determine which one is currently running. One way to do that is to check your process…

    changing the default shell to zsh

    2022-11-28

     | 

    ~3 min read

     | 

    590 words

    By default, the shell on a Mac is . Changing this should be a simple three step process: Make sure that is installed and is an accepted…

    creating symlinks

    2022-11-28

     | 

    ~1 min read

     | 

    85 words

    To create a symlink, you need only one command: For example, on Ubuntu, the package for Node.js is (not ). Since typing to run node would…

    repeat a terminal command in unix

    2022-11-28

     | 

    ~2 min read

     | 

    243 words

    The is a quick way to repeat a command in a UNIX environment. For example, here I’m looking at a directory’s contents, then invoking it…

    setting persistent environment variables

    2022-11-28

     | 

    ~1 min read

     | 

    111 words

    To make an environment variable available in Bash or Zsh, save the environment to or respectively. To set the variable, open the…

    printing the directory tree

    2022-11-28

     | 

    ~3 min read

     | 

    545 words

    I wanted to be able to print cool trees of my directories to help show my folder structure. At first, I thought it was simply using standard…

Return to all tags