d
Amit DhamuSoftware Engineer
 

UNIX Commands

1 minute read 00000 views

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