Basic linux learning (1)

Source: Internet
Author: User
(1) Linux distribution companies: redhatsuseredflag (2) storage media: the Iide interface is automatically recognized as/dev/hdaScsi interface and/dev/sdaStata (serial hard drive) the soft drive is automatically recognized as/dev/fd0Usb and automatically recognized as/dev/s...

 

(1) Linux distribution companies: redhat suse redflag

(2) storage media:

The Iide interface is automatically recognized as/dev/hda.

The Scsi interface is automatically recognized as/dev/sda.

Stata (serial hard drive)

The software Drive is automatically recognized as/dev/fd0.

Usb is automatically recognized as/dev/sd

(3) Linux partition:

"/" The root partition is about 10 GB.

"/Boot" boot partition 100 M

"/Swap" swap partition is equivalent to 2 times the virtual memory (no mount point is required)

(4) login method:

1. local login

A total of 7 terminals (6-character interface and 1 graphical interface)

Switch graphics-> ctrl + alt + [shift] (virtual) + F1 ~ F6

Character -- "character alt + f1 ~ F6

Character -- graphic alt + f7 (startx &, init 5, gnome-session, start kde)

2. network logon

Telnet tcp port 23 (access in plaintext)

Ssh tcp 22 Port (encrypted)

Vnc is equivalent to remote desktop

(5) change the language display of the terminal:

1. Temporary change: LANG = en_US.UTF-8 (English) if you want to show Chinese en -- zh

2. Permanent Change: vim/etc/sysconfig/i18n (English by default)

(6) system operation level

View the running level: runlevel

0: disable System 1: Single user level (no network function) 2: Multi-user level (character terminals lack nfs)

3: Multi-user level (character terminal) 4: Reserved 5: Graphics 6: Restart

(7) password-d root delete the root password-d (delete)

Ctrl + a move the cursor to the front ctrl + e move the cursor to the end

Rpm-qa | grep software package name query a software package

-Q (query)-a (all)-l (local location)-I (install installation)

(8) about system commands

Close: Shutdown poweroff init 0 halt (suspended)

Reboot (restart)

Shutdown + 2 [minutes] closed in 2 minutes

Shutdown now (+ 0) close now

Shutdown-h time (hour: minute: second) close at time

Shutdown-k (warning)-r (restart)

-R-F now (Force File system scanning after restart)

(9) help commands

Command -- help

Man (info) query help

Level after Man: 1: Normal User Manual 5: script manual 8: administrator user manual

Whatis + command to query what the command is, but first you need to create the whatis information library file makewhatis

Which + Command Query command location

Who queries which users have logged on to WTI for more detailed information

Tty's own terminal location ps-t tty1 ~ 6. view the commands executed by a terminal

Prompt:

[Account name @ host name current directory] administrator $ (common user)

(10) ls/view the root directory

/Etc system configuration or server configuration

/Var changeable targets

/Bin all users can operate

/Sbin Super command

/Proc memory process Image

/Lib Library File (Ldd/bin/ls view ls dynamic link library file)

/Mnt manual mount point

/Media automatic mount point

This article is from the "note_book" blog

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.