Some of the most basic Linux operating

Last updated: 2015-05-06

This is a very early written before, the finishing time to see the notes, Linux very basic operations.

image_1bff4dsme1kbgai5ga51ta61o3l9.png-309.5kB

bin / sbin: generally stored files can be executed


Absolute path
relative path

mkdir
you
ls:
cd

./Desktop/ cd
cd Desktop /
cd / bin / jump to the root directory under the
pwd

ls -l

D represents the beginning of a folder

  • Indicates the file
    r read w write x exex (executable)
    image_1bff5g8bkfrhahce2sqp1p0tm.png-224.8kB

Need help
--help
man the -l
image_1bff63t791pv0d64110316ed13ml23.png-469.2kB

q: quit


ls:

  • ls -l: Display a list
  • ls -lh:
  • ls -a show hidden files

Wildcard
*: one or more of
:? Accounting for a location
[]:
LS 1 [1234] 3.py
LS 1 [1-4] 3.py

 Escape
* .a: show .a file name
LS
.py


Redirect
image_1bfg2js9013se1nj21i07o4t1rnb9.png-548.2kB

More
image_1bfg38bb519btsk986i1r1c1kit9.png-580.7kB

cat file contents without editing
|: tube
ls -alh | more
meaning: the contents stored in the pipeline ls |, the more subsequent instructions processed from the top

image_1bfg3g85f1qpe1ou01ot04uli4km.png-610.8kB

A rapid return to the path:
cd -

image_1bfg3m96i8hlckb2ch1k1lfel13.png-153.3kB


folder

mkdir
rmdir

image_1bfg3uni21b3i13233591j9k1bi01g.png-312.7kB


Create link

image_1bfg4e8i5tjd1ka318ubopq1avr2d.png-348.6kB


Cat

image_1bfg4q8neg1c1f37tim1lpn191f2q.png-227.8kB


grep

image_1bfg54rjdsqg1svldrd1ofj1ngm37.png-311.9kB


Find

image_1bfg5doig11lj1vep1l5p12e2tv244.png-362.9kB


cp

image_1bfg5k7nd1b1p1mm01bf1u6rhit4h.png-411.1kB


MV

image_1bfg5phh7fth1t6471a7ug1mce4u.png-235.8kB


Packaging & Compression

image_1bfg5utgs6m4h89rd9pssipj5b.png-372.6kB

image_1bfg671vfp33nuvhrgr3v1cl75o.png-581kB

Guess you like

Origin www.cnblogs.com/gaox97329498/p/11914350.html