0% found this document useful (0 votes)
31 views1 page

Moving Around in The File System

This document introduces basic Linux commands for navigating directories, examining files, and manipulating files and directories. It lists commands like pwd, ls, cd, file, cat, less, cp, mv, rm, and mkdir along with brief explanations of their actions, such as using pwd to show the current working directory, ls to list directory contents, and cp -r to copy a directory with its contents.

Uploaded by

rkchandra26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views1 page

Moving Around in The File System

This document introduces basic Linux commands for navigating directories, examining files, and manipulating files and directories. It lists commands like pwd, ls, cd, file, cat, less, cp, mv, rm, and mkdir along with brief explanations of their actions, such as using pwd to show the current working directory, ls to list directory contents, and cp -r to copy a directory with its contents.

Uploaded by

rkchandra26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

A small Linux cheat sheet, introducing the very basic and very essential commands for surviving at the

Linux CLI.
Moving around in the fi le system
Command Action
pwd "Print working directory" - show what dir you're in.
ls List the contents of a dir.
ls -l List the contents of a dir and show additional info of the files.
ls -a List all files, including hidden files.
cd Change directory.
cd .. Go to the parent directory.
Examining fi les
Command Action
file Determine the type of a file.
cat Concatenate a file.
less View text files and paginate them if needed.
Manipulati ng fi les and directories
Command Action
cp Copy a file.
cp -i Copy a file and ask before overwriting.
cp -r Copy a directory with its contents.
mv Move or rename a file.
mv -i Move or rename a file and ask before overwriting.
rm Remove a file.
rm -r Remove a directory with its contents.
rm -i Ask before removing a file. Good to use with the -r option.
mkdir Make a directory.
rmdir Remove an empty directory.

You might also like