Linux Shell Simple Commands

Source: Internet
Author: User

sudo uname--m View the number of operating system bits
sudo uname--s display kernel name s
sudo uname--r display kernel version
sudo uname--n display the network host name
sudo uname--p display CPU

Under Ubuntu, text files are usually opened with the command line, such as commands Gedit, more, cat, vim, less, xdg-open

mkdir Directory Name--Create a directory
RmDir Empty directory name--delete an empty directory
RM File name--delete a file or multiple files
RM-RF non-empty directory name--delete everything in a non-empty directory
Touch file name--Create an empty file

Rename file (clip)/move file (clip) to the specified folder
Execution format: MV source destination

Example:
MV File1 file2 means to file1 the file and change the file name to File2. MV File1 dir1 The file file1, moved to directory Dir1, and the filename is still file1. MV Dir1 DIR2 If the directory Dir2 exists, the
Dir1, and all of its files and subdirectories, move to directory Dir2, and the new directory name is Dir1. If the directory Dir2 does not exist, the dir1, and all of its files and subdirectories, are changed to directory Dir2.

Linux Shell Simple Commands

Related Article

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.