In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "Linux file creation command method is what", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's train of thought slowly in depth, together to study and learn "what is the method of Linux file creation command" bar!
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 means to change the directory owner to an oracle account
Chgrp dba / home/u1 change / home/u1 directory to be owned by dba
Chmod 755 / home/u1 indicates that the oracle account has 755 permissions on the / home/u1 directory
Rmdir / home/u1 means to delete the / home/u1 directory
Hostname can view the computer name of linux
Whoami can view the current user
Pwd displays the current path
Df views the hardware information of the system
Ls-lrt l displays a detailed list,-t sorts by time, and-r sorts in reverse
Cat orcl_ora_3436.trc | grep bucket
The following view the contents of the relevant files:
More / etc/oratab
Cat / etc/passwd
Cat / etc/group
Thank you for your reading, these are the contents of "what is the method of creating file commands in Linux". After the study of this article, I believe you have a deeper understanding of what the method of creating file commands in Linux is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.