Amit Dhamu

Writes Code

UNIX Commands

# copy a file
cp mydir/file mydir/file_copy

# create directory
mkdir mydir

# delete file
rm mydir/file

# move a file
mv olddir/file newdir/file

# delete directory and contents inside
rm -r mydir

# list files and folders
ls -o mydir #current dir
ls -ao mydir #current dir including hidden files

# change password
passwd

# clear screen
clear

# browse directory
cd mydir

# go to home folder
cd ~

# close session
exit


ssh / command line / putty / terminal / bash / unix

← Insert Character At Position Git Commands →