Basic LINUX - 5

on 8:54 AM

To copy files

[root@database ~]# cp anaconda-ks.cfg file1

To copy folders

[root@database ~]# cp -r dir2 Desktop

To rename  directories and files

[root@database ~]# mv dir3 d4

To move directories and files 


[root@database ~]# mv dir2 /opt

To move directories and files 

[root@database ~]# mv dir2 /opt

To see the type of file

[root@database ~]# file *

0 comments:

Post a Comment