Posts Tagged ‘copy’

Unix / Linux Commands

This item was filled under [ Linux ]

File Commands

ls
directory listing

ls -al
formatted listing with hidden files

cd dir
change directory to dir

cd
change to home

pwd
show current directory

mkdir dir
create a directory dir

rm file
delete file

rm -r dir
delete directory dir

rm -f file
force remove file

rm -rf dir
force remove directory dir

cp file1 file2
copy file1 to file2

cp -r dir1 dir2
copy dir1 to dir2; create dir2 if it doesn’t exist

mv file1 file2
rename or [...]

Continue reading...

Copying Files

This item was filled under [ Linux ]

cp (copy)
cp file1 file2 is the command which makes a copy of file1 in the current working directory and calls it file2
What we are going to do now, is to take a file stored in an open access area of the file system, and use the cp command to [...]

Continue reading...

Tagged with: [ , ]
Update me when site is updated