Ubuntu Common commands and environment building

Source: Internet
Author: User
Tags create directory

Ubuntu Environment Building

The first is also the simplest and most convenient

With VM virtual machine software, download the ISO image for a next installation, which is not mentioned here. The software involved, Oracle virtual box vm, ubuntu any release ISO.

The second one writes the ISO image to the U-disk and then partitions it separately on the computer for installation.

Write with software such as EasyBCD

For a separate partition of the computer, you should be aware that: win can only be from the adjacent disk character to the space of the combination of thin body

In the process of installing Ubuntu, because it is not installed in the virtual machine, it is important to note/root swap space Home home directory size partition, online related tutorials very much, due to time relationship, post-collation will put pocket link

Last reminder: Do not recommend the use of Wubi installation, there will be some strange situation, the system is difficult to use

Common commands use

With the Ubuntu system set up, go to the point, first constantly familiar with and master some of the use of common commands

LS lists all files in the current directory

LS-A lists all files that contain hidden files (the hidden files in Ubuntu begin with.)

Ls-l listing files (including date, size, owner, etc.)

Commands can be written together such as: Ls-a-L View all files in a list format

=======

MV equivalent to clipping MV file path

RM Delete Files RM file

Cat Display file contents (just display, if you need to modify the file available vim or gedit command)

=====

Soft Links: Ln file path

Hard Link: ln-s file path

Summary: Whether it is a soft link or a hard link, the corresponding path will generate a new icon, hard link to send the file as the source file, modify the source file will follow the changes;

Soft links, the same two file changes will be changed, but two files are not the same file, equivalent to Windows shortcut, in Ubuntu, soft connection with more (understand here, will be updated later)

======

Ubuntu file Permissions Simple explanation

If we use the LS-L command under Terminal to view any directory, please note that each line starts with: drwxr-xr-x

A directory file (folder) that begins with D in Ubuntu-starts with a file

Permissions section

The permissions in Ubuntu are rwx, respectively, are read read Write writes execute EXECUTE permission terminal use chmod for file permission changes, this article enumerates some methods, the detailed use method can be viewed through chmod--help

Please note that Drwxr-xr-x has multiple similar permissions complete rwxrwxrwx three pairs corresponding to three kinds of user identities in Ubuntu ugo,u the current user, G is the group user, O is the other user, so you know Drwxr-xr-x folder permissions

Example one: chmod g+w file refers to the group user of the files and the Write permission of W can chmod g-w file

Example 2:8 binary delegate permissions

RWX 111 converted to octal: 7

RW 110 converted to octal: 6

Rx 101 converted to octal: 5

R 100 converted to octal: 4

WX 011 converted to octal: 3

W 010 converted to octal: 2

X 001 into octal: 1

So chmod 777 file gives Ugo three different users all permissions

======

About mkdir Touch VI cat more head tail RM CP general file Operations Command

mkdir Create directory (folder) mkdir folder

Touch Create files Touch file

VI and in the terminal to modify the contents of file files vi file input I start editing, ESC exit Edit state, enter: wq! Save Exit! Represents force Save

Cat more head Tail main view file content, self-comparison

RM Delete file Rm-r Delete directory (folder)

CP Copy file cp-r copy directory (folder) Note: CP file1 file2 can copy file1 content to file2 without changing the file name

======

Compress/Unzip command

Compression: Tar-cfvz file.tar.gz file1 file2

Decompression: Tar-xfvz file.tar.gz

Related to XFVZC and other letter meanings, available in tar--help view

At this point, the Ubuntu simple command to use the tutorial to this end, if you want to drill down to see http://billie66.github.io/TLCL/book/zh/to learn

Finally, the Java development environment has not been told, so I'll start by saying it briefly.

JDK files can be downloaded from the website using the TAR command to decompress the installation

Open configuration sudo gedit/etc/profile add the following content

#set Java Environment

Export Java_home=/usr/lib/jvm/java-7-sun

Export JRE_HOME=${JAVA_HOME}/JRE

Export Classpath=.:${java_home}/lib:${jre_home}/lib

Export Path=${java_home}/bin: $PATH

Configuration Complete using Java-version view

About the Eclipse installation

You can install Umake IDE Eclipse Note by using the Umake command directly: Do not modify the default path, or the installation will fail.

Ubuntu Common commands and environment building

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.