Wednesday, 19 July 2017

practical



Name
Vadhel Rakesh Shamjibhai
Enrollment No
165023693099
Branch
MCA
Semester
4
Batch {LAB}
B2
Faculty Name
Mr.Nirajsir
College
Atmiya institute Of Technology & Science
Mobile
9824076896
Email
rakeshvadhel10@gmail.com












ü  First create a file in linux terminal : mca@mca-pc /data/rakesh $ cat > hello.txt
ü  After the created a file then write something.
                hello goord morning gays.
atmiya institute of technology and science rajkot
thank you!
Command:- cp
Syntax:- cp source destination || cp filename destionation
Description:- in this command is used to copy file in one location to other.
Ex:-         cp hello.txt abc

Command:- mkdir
Syntax:- mkdir name of directory
Description:- in this command is used to create a new directory.
Ex:-         mkdir abc
mca@mca-pc /data/rakesh $ mkdir abc

NOTE:
1)       /abc :it is a root directory.
2)       Abc : it is directory.
3)       Abc/ :inside a directory.
4)       ../abc :previous postion.

ü  the copy file inside the abc folder or folder inside another folder that is hierarchy fomate.
mca@mca-pc /data/rakesh $ cp hello.txt abc
ü  the ../ mean previous position(-p position)
mca@mca-pc /data/rakesh $ mkdir ../xyz
mca@mca-pc /data/rakesh $ mkdir -p 1/2 1/3
mca@mca-pc /data/rakesh $ mkdir -p 1/2/4 1/2/5 1/3/6 1/3/7
mca@mca-pc /data/rakesh $ mkdir -p 1/2 1/3
mca@mca-pc /data/rakesh $ mkdir -p 1/2/4 1/2/5 1/3/6 1/3/7
mca@mca-pc /data/rakesh $ cp hello.txt /data/rakesh/1/3/7
mca@mca-pc /data/rakesh $ cp hello.txt 1/3/7
mca@mca-pc /data/rakesh $ mkdir -p 1/2/4 1/2/5 1/2/5/8 1/3/6 1/3/6/9 1/3/7 1/3/10
               
                mca@mca-pc /data/rakesh $ cp hello.txt /data/rakesh/1/3/7
mca@mca-pc /data/rakesh $ cp hello.txt 1/3/7
mca@mca-pc /data/rakesh $ mkdir -p 1/2/4 1/2/5 1/2/5/8 1/3/6 1/3/6/9 1/3/7 1/3/10
mca@mca-pc /data/rakesh/1 $ mv 3/7/hello.txt /data/rakesh/1/2/5/8


                                                                                                                                                    

No comments:

Post a Comment