Basic use of Ubuntu Linux environment

Source: Internet
Author: User
Tags clear screen

Basic use of Ubuntu Linux environment

Open a terminal

Ctr+alt+t

Close a terminal

ALT+F4 exit

Shell: single-word-meaning shell, computer-semantic command interpreter.

Shell prompt

#: Typically you are superuser, root

$: Generally you are a regular user

Clear Screen

Clear shortcut key Ctr+l

See which files are in the current directory

Ls

View current directory

Pwd

Auto-completion paths and commands

TAB key

Go to Catalog

CD directory path (absolute path, relative path)

Create a Directory

mkdir Directory Name

RmDir Delete Empty Directory

Rm-r Delete a non-empty directory

RM Deletes a file

Home command

Cd

Root directory explanation

/called root directory

Switch to character console

ctr+alt+shift+ (F1-F6)

Switch back to the graphical interface

Alt+f7

Flip the screen under the command line

Shift+pgup

Shift+pgdn

Process Management Commands

View process Information

PS aux

Kill-9 Process Number

Kill-sigkill Process Number

Terminates the foreground process inside the current shell

Ctr+c

Find files by file name

Find path-name "file name"

Find files based on file contents

grep "Content" path-r (meaning of recursive lookup)

tar.gz Packaging commands

Tar zcvf test.tar.gz Test

tar.gz Unpacking Command

Tar zxvf test.tar.gz

Tar zxvf test.tar.gz-c specified directory

Tar pack command

Tar cvf Test.tar Test

Tar unpack command

Tar xvf Test.tar

Tar xvf test.tar-c specified directory

BZ2 Package Packing Command

Tar jcvf test.bz2 Test

BZ2 Package Unpacking Command

Tar jxvf test.bz2

Tar jxvf test.bz2-c specified directory

Basic use of Ubuntu Linux environment

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.