Linux Notes (the first day)

First, the command

lscpu - View cpu

 

free - View Memory

     -m to see M

     -g to view G

 

cat - view the file contents

lsblk - View disk partitioning

uname -r - core edition

lsb_release -a - View Linux version (centos7 version for the next installation command cat / etc / centos-release to view)

rz - open the local system browser (centos7 next version)

ll - View File Size

pwd - the current directory path

cp - Copy

reboot - reboot

poweroff - Shutdown

------- ------------- user login to be turned off

nano /etc/gdm/custom.conf --- file modification Ctrl + x to exit, press Y to save.

[daemon]

AutomaticLoginEnable=true

AutomaticLogin=root

echo $ SHELL - View shell

ll / bin / bash -h - Check the file size shell

enable - see the shell internal command

> - Clear file contents

logout = ctrl + d - logout (Release)

help - View command help

man - View command help

enable -n XXX - disable the internal command

enable XXX - Enable internal command

enable -n - View internal command all disabled          

------- external instruction ---------------------

External position commands exist: 1, / bin 2, / sbin / 3, / use / bin 4, / use / sbin

type - determines whether the command is an internal command or external command 

$ Variable representing the beginning

echo - display (disk file locations)

rm - Delete

hash - Displays the command has been executed for all external command information (cache)

       -d XXX - Clear Cache external command

       -l XXX - displays detailed hash cache command

       -t XXX - full path to the print command

  -r - clear all cache command

which XXX - Search Disk command position

        -a XXX - XXX listed under all paths

type XXX - Find first memory - to look at the disk file 

alias lo = 'XXX' - aliasing (equivalent to the variable assignment)

hash -p XXX f - f a path named

 

Guess you like

Origin www.cnblogs.com/sheshidu/p/11561156.html