5. To create a file
[root@database ~]# cat > file1
hi how are you
6. To see file content
[root@database ~]# cat file1
hi how are you
7. To append a file
[root@database ~] cat >> file1
iam fine, it is very nice
[root@database ~] cat file1 file2 >> file3 #redirecting output to file3
[root@database ~] cat file3
8. To create a file using touch command
@ Touch - The touch command is the easiest way to create new, empty files.
[root@database ~]# touch f1 f2 f3 f4
[root@database ~]# ls
9. Creating a single directory
[root@database ~]# mkdir dir
10. Creating multiple directories
[root@database ~]# mkdir dir1 dir2 dir3 dir4
[root@database ~]# ls
anaconda-ks.cfg dir dir2 dir4 f2 f4 file2 install.log
labmanual
[root@database ~]# cat > file1
hi how are you
6. To see file content
[root@database ~]# cat file1
hi how are you
7. To append a file
[root@database ~] cat >> file1
iam fine, it is very nice
[root@database ~] cat file1 file2 >> file3 #redirecting output to file3
[root@database ~] cat file3
8. To create a file using touch command
@ Touch - The touch command is the easiest way to create new, empty files.
[root@database ~]# touch f1 f2 f3 f4
[root@database ~]# ls
9. Creating a single directory
[root@database ~]# mkdir dir
10. Creating multiple directories
[root@database ~]# mkdir dir1 dir2 dir3 dir4
[root@database ~]# ls
anaconda-ks.cfg dir dir2 dir4 f2 f4 file2 install.log
labmanual
0 comments:
Post a Comment