← All commands
BROWSE BY TOPIC

#files

Practical commands for this part of your workflow.

86 commands

SMALL REFERENCE. USEFUL DETAILS.

Print the file name part of a path, with or without its extension.

GNU / macOS / Apple / BusyBox

cat

Print files, or standard input, one after another.

GNU / macOS / Apple / BusyBox

cksum

Print a CRC checksum and the byte count of files.

GNU / macOS / Apple / BusyBox

comm

Compare two sorted files and show lines unique to each or shared.

GNU / macOS / Apple / BusyBox

csplit

Cut a file into pieces at lines that match a pattern or a line number.

GNU / macOS / Apple

dd

Copy bytes from an input to an output, with control over block sizes and conversion.

GNU / macOS / Apple / BusyBox

df

Show free and used space on mounted file systems.

GNU / macOS / Apple / BusyBox

du

Show how much disk space files and folders use.

GNU / macOS / Apple / BusyBox

link

Make a hard link with the plain two-argument form.

GNU / macOS / Apple / BusyBox

ln

Make hard links and symbolic links to files.

GNU / macOS / Apple / BusyBox

mkfifo

Create a named pipe, a file that connects two programs.

GNU / macOS / Apple / BusyBox

nl

Number the lines of a file.

GNU / macOS / Apple / BusyBox

od

Dump the bytes of a file as octal, hexadecimal, decimal or characters.

GNU / macOS / Apple / BusyBox

paste

Join lines from several files side by side, or join one file's lines into one.

GNU / macOS / Apple / BusyBox

Print the absolute, fully resolved form of a path.

GNU / macOS / Apple / BusyBox

stat

Show file size, permissions, type and timestamps.

GNU / macOS / Apple / BusyBox

sum

Print an old-style checksum and block count of files.

GNU / macOS / Apple / BusyBox

tac

Print the lines of a file in reverse order.

GNU / BusyBox

tail

Print the last lines or bytes of files, or follow a growing file.

GNU / macOS / Apple / BusyBox

tee

Copy what comes in to a file and to the screen at the same time.

GNU / macOS / Apple / BusyBox

touch

Create empty files or change file timestamps.

GNU / macOS / Apple / BusyBox

Set a file to an exact size, shrinking or extending it.

GNU / macOS / Apple / BusyBox

unlink

Remove one file with the plain one-argument form.

GNU / macOS / Apple / BusyBox