Common new and copy file commands under Ubuntu system

Source: Internet
Author: User

When we install the program in the Ubuntu system, we often want to create and copy files in the USR directory, this folder in the Linux class system requires root permission to access, so with the normal mouse button menu operation is not valid, today share the use of commands in the terminal to create new, copy files.

Related commands:

CD path (enter a path, such as/usr/local/lib)

Cd.. (Return to previous folder)

Dir (displays all files under the current folder)

sudo command (get Super admin permission, need to enter password)

Common new, delete, copy commands:

mkdir Directory Name (new folder, folder in Linux system called "directory")

Touch file name (create an empty file)

RmDir Directory Name (delete an empty folder, the contents are not available in the folder)

RM-RF a non-empty directory name (delete a folder that contains files)

RM File name (delete multiple files)

CP file name (copy a file)

Cp-i (copy, when a file of the same name exists, output [yes/no] asks whether to execute)

Cp-f (Force copy file, if same name not asked)

Common decompression, installation program, file Update command: Deb format double-click to install

TAR-ZXVF *.tar.gz (extract tar.gz formatted files)

SH Path/x.sh (installs the SH format file, such as sudo sh/home/hp/downloads/*.sh)

sudo apt-get upgrade (update installed packages)

sudo apt-get update (update source)

If you want to know where the files are installed? You can go to the/usr/share/applications folder and take a look at it and create a shortcut on the desktop using the method mentioned earlier.

These are my usual commands, in fact, Linux commands abound, but with the Ubuntu GUI update, a lot of commands in the personal desktop has not been used, but only the command line server side still need, so I admire those maintenance server engineers, in addition, Want to have excellent programming technology, memory is really important, so you do not always stay up late, take care of your body.

Say Blog Park diary function, originally is private nature, moved to Diary of article home will not be public display, and can't move back ...

Common new and copy file commands under Ubuntu system

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.