O'Reilly logo

Linux in a Nutshell, 6th Edition by Robert Love, Stephen Figgins, Ellen Siever, Arnold Robbins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

File Management

Command

Action

cat

Concatenate files or display them.

chattr

Change attributes on an ext2 file.

chgrp

Change group of files.

chmod

Change access modes on files.

chown

Change ownership of files.

chsh

Change login shell.

cp

Copy files.

csplit

Split a file into pieces with a specific size or at specific locations.

dd

Copy files in raw disk form.

file

Determine a file’s type.

head

Show the first few lines of a file.

hexdump

Display files in hexadecimal format.

less

Display files by screenful, forward and backward.

ln

Create filename aliases.

ls

List files and directories.

md5sum

Compute MD5 checksum.

merge

Merge changes from different files.

mkdir

Create a directory.

more

Display files by screenful, forward only.

mv

Move or rename files or directories.

newgrp

Change current group.

od

Display files in octal format.

pwd

Print working directory.

rm

Remove files.

rmdir

Remove directories.

sha1sum

Compute SHA1 checksum

shred

Securely delete files.

split

Split files evenly.

tac

Print lines of a file in reverse order.

tail

Show the last few lines of a file.

tailf

Follow the growth of a logfile.

touch

Update file timestamps and create the file if it doesn’t exist.

wc

Count lines, words, and characters.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required