By default, most search tools look at file names, not file contents. However, the most famous GNU search program grep will look inside files with the correct flags. Here we will show you how you can find specific word(s) in a file on Linux. Using grep to Find a Word In a File By default, […]
Pro Terminal Commands: 10 Uses for ps on macOS
For system administrators, ps on macOS is a frequently-used tool. The command stands for “process status,” and that’s largely what it does. It reports currently-running processes with a variety of filters and views. Run the command with no flags, and it will show only the processes associated with the currently-running terminal. Start adding additional flags, […]
Pro Terminal Commands: Use fd on macOS to Find Files
fd is a simpler alternative to the find command. It uses a truncated syntax and an abbreviated command structure to keep your typed commands short and to the point. However, that lack of verbosity that makes fd easy to type makes it more difficult to understand. fd also runs pattern matching more rapidly than the […]
Getting Started with Terminal: Install and Use wget
wget is a non-interactive command-line utility for download resources from a specified URL. Because it is non-interactive, wget can work in the background or before the user even logs in. The program was designed especially for poor connections, making it especially robust in otherwise flaky conditions. While wget isn’t shipped with macOS, it can be […]
Pro Terminal Commands: Working with chflags in macOS
Flags are a system outside of permissions on macOS that are used to control how files can be changed. They are primarily concerned with controlled the modification of a file, but differently from permissions. Flags can only be set by an administrative user or the owner of the file, except in cases of system flags. […]
Pro Terminal Commands: Editing the SSH Configuration File
The SSH configuration file on your Mac controls how secure shell, aka SSH, operates. It can be used for simple alternations, like changing the ssh port on your devices, can often eliminate a huge number of ssh “cold calls” on your machine, the ssh configuration file can do much more than that. Where is the […]
Pro Terminal Commands: Customize Terminal on macOS
If you spend any time in Terminal on your Mac, it’s worth customizing the look and feel of the application. Here are some of the most interesting ways you can customize Terminal with themes, colorization, and first-run commands. Tweaking Terminal’s Theme Terminal has the built-in ability to theme your shell windows, but you’d never know […]
Pro Terminal Commands: Copy Colored Code into Word
If you want to copy colored code from Terminal to Word with the correct colorization, simple copy and paste won’t work. You’ll need to use a tool to generate colorized HTML, then import the HTML into Word. We can use ansi2HTML to convert our Terminal code to HTML, then drop it into our Microsoft Word […]
Pro Terminal Commands: Run a Python Script on Mac
Python is a very Mac-style language. It ditches many of the syntax conventions of traditional programming languages in favor of human-readable code, tab-based hierarchy, and abstracted memory management. It’s a great first programming language especially, which leaves a lot of folks looking for explanations on how to perform tasks that are apparently so simple, no […]
Pro Terminal Commands: How and Why To Edit Sudoers on macOS
Within your macOS system, there’s a file called “sudoers” which controls the deepest levels of your permissions system. This file says which users can run sudo, and what they can do when they run it. Basically, it decides who is in charge. We can edit sudoers on macOS to administer a multi-user system more effectively. […]