CMD

history

# Show a list of the commands entered since you started the session
history

# Replay any command using ! followed by the number, for example:
!10

# Replay the last command
!!

nix-envarrow-up-right (manipulate or query Nix user environments)

# See installed packages
nix-env -q

# Install packages
nix-env -iA

basenamearrow-up-right (strip directory and suffix from filenames)

basename "/Users/nikivi/Documents/books/Thinking, fast and slow.pdf" # => Thinking, fast and slow.pdf

chmodarrow-up-right (change file mode bits)

# All users can read and write but cannot execute
chmod 666

# All actions for all users
chmod 777

# Only owner can do all actions; group and other users are allowed only to read
chmod 744

tailarrow-up-right (output the last part of files) https://www.explainshell.com/explain/tailarrow-up-right

playgoarrow-up-right (send .go file to the Go Playground)

trarrow-up-right (translate or delete characters)

diffarrow-up-right (compare files line by line)

findarrow-up-right (walk a file hierarchy)

greparrow-up-right (file pattern searcher)

manarrow-up-right (open manual pages)

sortarrow-up-right (put the lines of a text file in alphanumeric order)

PlistBuddy (read and write values to plists)

killarrow-up-right (send a signal to a process)

headarrow-up-right (output the first part of files)

tar (manipulate tape archives)

env (set environment and execute command, or print environment)

cat (concatenate and print files)

ngrokarrow-up-right (expose your localhost to the web)

rmdir (remove empty directories)

mediumexporterarrow-up-right (export medium.com articles to markdown)

file (determine file type)

time (time command execution)

screencapturearrow-up-right (capture images from screen)

Last updated