Linux small white Learn to get started process

Source: Internet
Author: User
Tags rar

This blog is not about writing technology.

Speaking of Linux, I am only a small white level. But I do not think that small white can not write a little learning process.

Everyone has their own way of learning. Some people like to buy a few books when they want to learn something new, and then chew and chew. This learning style for a long time and from the foundation to the deep layers of depth, most people can not persist, basically the book is to see the second chapter (the first chapter is an introduction, no one to see). Some people, like on the site search various tutorials, all kinds of from the beginning to proficient, but searched a lot of, unthinking, search a little to learn a little, with a little. This type of learning is suitable for cramming, such as the need for work, temporary search can be used on the line, or learn other things when the temporary move over, of course, such a way of learning simple, often only may not tress. There is another kind of people, especially like to watch video, search for some video on the fierce look, look very serious, as if all know, but the use of the time will not be used, and still can not digest.

In conclusion, the way of learning can not be single and diversified. and to be suitable for the ground, to find suitable for their own time and the way to learn.

What does this have to do with learning about Linux?

The relationship is here.

Whether it is to develop a side-dish programmer, or a senior architect, or a technical director or even a company executive, if the technical staff, if only a few windows, will not be able to do a good job, if it is the management personnel, can be familiar with Linux, the following people will be impressed, worship. Therefore, as the practitioners of IT industry, the Linux Buddha is the worker's vehicle, the degree of mastery is often the value of driving.

So, how to learn Linux?

The three learning methods mentioned above should be combined with each other.

1, online search, first Baidu a bit of Linux commonly used commands.

2. Look for a video tutorial to see how the teacher learned how to use Linux. This process will install a variety of software. This process is also very, very important.

3. Do your own thing in the video tutorial. That's a lot.

4, the above several methods are just "layman" of the application of learning, that is, first use up.

Next we will buy a few books, the system of learning Linux. This will be a deeper understanding of the principle, in the process of reading, the above three processes encountered in the various "inexplicable" problems are made clear the principle.


Let me also paste the following things in this learning process:

1. Common Linux Commands:

Files and directories
Cd/home Enter '/home ' directory '
Cd.. Return to the top level directory
Cd.. /.. Return to the top level two directory
CD into the personal home directory
CD ~user1 into the personal home directory
CD-Return to the last directory
PWD Display work path
ls to view the files in the directory
Ls-f viewing files in a directory
Ls-l displaying details of files and directories
Ls-a Show hidden files
LS *[0-9]* displays filenames and directory names that contain numbers
Tree displays files and directories starting with the root directory (1)
Lstree displaying files and directories starting with the root directory tree (2)
mkdir dir1 Create a directory called ' Dir1 '
mkdir dir1 DIR2 Create two directories at a time
Mkdir-p/tmp/dir1/dir2 Create a directory tree
Rm-f file1 Delete a file called ' File1 '
RmDir dir1 Delete a directory called ' Dir1 '
RM-RF Dir1 Delete a directory called ' Dir1 ' and delete its contents at the same time
RM-RF dir1 DIR2 Delete two directories and their contents at the same time
MV Dir1 New_dir Renaming/Moving a directory
CP file1 file2 Copy a file
CP dir/*. Copy all files under a directory to the current working directory
Cp-a/tmp/dir1. Copy a directory to the current working directory
Cp-a dir1 dir2 Copy a directory
Ln-s file1 lnk1 Create a soft link to a file or directory
ln file1 lnk1 Create a physical link to a file or directory
Touch-t 0712250000 File1 Modify the timestamp of a file or directory-(YYMMDDHHMM)
File File1 outputs the MIME type of the file as text
Iconv-l List of known encodings
Iconv-f fromencoding-t toencoding inputfile > OutputFile creates a new from the given input file by assuming it is en Coded in fromencoding and converting it to toencoding.
Find. -maxdepth 1-name *.jpg-print-exec Convert "{}"-resize 80x60 "thumbs/{}" \; Batch resize files in the current directory and send them to a thumbnails directory (requires convert from Imagemagick)


File Search
Find/-name file1 from '/' to the root file system to search for files and directories
Find/-user user1 search for files and directories belonging to user ' User1 '
find/home/user1-name \*.bin in directory '/home/user1 ' search for files with '. bin '
find/usr/bin-type f-atime +100 Search execution files that have not been used in the last 100 days
find/usr/bin-type f-mtime-10 Search for files created or modified within 10 days
Find/-name \*.rpm-exec chmod 755 ' {} ' \; Search for files ending with '. RPM ' and define their permissions
Find/-xdev-name \*.rpm search for files ending with '. RPM ', ignoring removable devices such as optical drives, Czech disks, etc.
Locate \*.ps looking for files ending with '. ps '-run the ' updatedb ' command first
Whereis Halt shows the location of a binary file, source code, or man
which halt displays the full path of a binary file or executable file


Disk space
DF-H displays a list of the partitions that are already mounted
LS-LSR |more arranging files and directories in size
Du-sh dir1 estimate directory ' Dir1 ' already used disk space '
Du-sk * | SORT-RN display the size of files and directories in terms of capacity size
Rpm-q-a--qf '%10{size}t%{name}n ' | SORT-K1,1N the space used by the installed RPM package, based on size (Fedora, Redhat class System)
Dpkg-query-w-f= ' ${installed-size;10}t${package}n ' | SORT-K1,1N Displays the space used by the installed Deb package based on size (Ubuntu, Debian System)


packaging and compressing files
bunzip2 file1.bz2 Extract a file called ' file1.bz2 '
bzip2 file1 Compress a file called ' File1 '
gunzip file1.gz Extract a file called ' file1.gz '
gzip file1 Compress a file called ' File1 '
gzip-9 file1 Maximum compression
rar A File1.rar test_file create a package called ' File1.rar '
rar a file1.rar file1 file2 dir1 simultaneously compresses ' file1 ', ' file2 ' and directory ' Dir1 '
rar x file1.rar decompression rar package
unrar x file1.rar decompression rar package
TAR-CVF Archive.tar file1 Create a non-compressed tarball
tar-cvf archive.tar file1 file2 dir1 Create a file containing ' file1 ', ' file2 ' and ' Dir1 '
TAR-TF Archive.tar Display the contents of a package
TAR-XVF Archive.tar Release a package
TAR-XVF ARCHIVE.TAR-C/TMP releases the compressed package into the/tmp directory
TAR-CVFJ archive.tar.bz2 Dir1 Create a compressed package in BZIP2 format
TAR-XVFJ archive.tar.bz2 Extract a compressed package in BZIP2 format
TAR-CVFZ archive.tar.gz Dir1 Create a zipped package in gzip format
TAR-XVFZ archive.tar.gz Unzip a compressed package in gzip format
zip file1.zip file1 Create a zip-format compression Package
zip-r file1.zip file1 file2 Dir1 compresses several files and directories into a zip-format package at the same time
Unzip File1.zip unzip a zip-format tarball


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Linux small white Learn to get started process

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.