This article describes how to create file commands in Linux.
Create a folder
Mkdir aaa
Mkdir-P aaa
Create FILE command
VI foo.txt
Emacs foo.txt
Echo "aaaa"> foo.txt
Cat> foo.txt
Clear command
> Foo.txt
Mkdir/home/U1 create Folder/home/u1
Chown Oracle/home/U1 indicates changing the directory owner to an oracle account;
Chgrp DBA/home/U1 change/home/U1 directory to DBA;
Chmod 755/home/U1 indicates that the Oracle account has 755 permissions on the/home/U1 directory;
Rmdir/home/U1 indicates deleting the/home/U1 directory
Hostname can be used to view the Linux computer name;
Whoami allows you to view the current user;
PWD displays the current path;
DF view system hardware information
Ls-lrt l indicates that the detailed list is displayed,-T indicates that the list is sorted by time, and-R indicates reverse sorting.
Cat orcl_ora_3436.trc | grep Bucket
See the following file content:
More/etc/oratab
CAT/etc/passwd
CAT/etc/group
The preceding method is used to create file commands in Linux.