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

Essential Unix Commands Overview

This document describes common Linux commands for working with files and directories including ls to list files in a directory, cd to change directories, pwd to print the current working directory, cp to copy files, mv to move or rename files between directories, and rm to delete files.

Uploaded by

PriyabrataTarai
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)
4 views1 page

Essential Unix Commands Overview

This document describes common Linux commands for working with files and directories including ls to list files in a directory, cd to change directories, pwd to print the current working directory, cp to copy files, mv to move or rename files between directories, and rm to delete files.

Uploaded by

PriyabrataTarai
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

Command Usage Description

ls ls /directory_path Shows list


eg: ls /usr of files
cd cd /Directory_path Change
eg: cd /usr/lib/Hadoop-0.20 directory
pwd pwd Print
current
directory
name
cp cp file_path /destination_directory_path Copy files
eg: cp abc /home/cloudera/
mv mv file_path Moves
/destination_directory_path file from
eg: mv myfile /newdirectory one
directory to
mv current_filename new_filename another
eg: mv f1 f1_newname directory

or
Renames a
file
rm rm file_path Deletes file
eg: rm /home/cloudera/file_name

You might also like