How to Create File commands in Linux

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.