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. |
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.