tag: unix

The su command in Linux and Unix (macOS)
Maria D. Campbell
How su, sudo su, and su --login differ in Linux and Unix, and why login shells matter for environment variables.

setuid, setgid, and sticky bit in Linux and Unix (macOS)
Maria D. Campbell
Learn how setuid, setgid, and sticky bit work in Linux and macOS — what they do, how to set and remove them with chmod, and when to use each one.
#chmod, #file permissions, #linux, #linux mint, #unix, #macOS, #principle of least privilege, #special permissions, #setuid, #setgid, #sticky bit

The chown command in Linux and Unix (macOS)
Maria D. Campbell
A hands-on walkthrough of the chown command for changing user and group ownership of files and directories on Linux and macOS.
#linux, #unix, #macOS, #chmod, #chown, #cybersecurity, #identity and access management, #user ownership

Changing permissions using symbolic mode and numeric mode in Linux and Unix (macOS)
Maria D. Campbell
A practical walkthrough of the chmod command in both symbolic and numeric mode, with real terminal output from Linux Mint and macOS.
#linux, #macOS, #unix, #file permissions, #numeric mode, #symbolic mode

The pipe (|) and tee commands in Linux and Unix (macOS)
Maria D. Campbell
In this post, I discuss the pipe and tee commands and how they interact with commands such as cat and wc, which accept stdin. I also talk about how the history command interacts with pipe and tee, and I provide live, practical examples of how these commands work together.
#command line, #linux, #unix, #macOS, #pipe, #tee, #wc, #cat, #history

Using pipe (|) and grep in Linux and Unix (macOS)
Maria D. Campbell
How the | operator and grep work together in Linux and Unix, plus a hands-on look at named pipes and why I ended up not using them.
#macOS, #linux, #grep, #fifo, #named pipe, #pipe, #redirect operator, #unix

Linux/Unix Command Line Commands applicable to Cybersecurity
Maria D. Campbell
In this post, I gather together some commands with live examples which I believe to be applicable to cybersecurity. They pertain to access control, network visibility, and investigation/forensics.

Compressing and uncompressing directories from the command line
Maria D. Campbell
How to compress and uncompress directories from the command line and why one way may be preferable over another.
#command line, #compressing directories, #macOS, #tar, #unix