当前位置:网站首页>RHCSA2

RHCSA2

2022-07-05 12:50:00 Grey rain

2、 Accessing the command line
# by root
¥ For ordinary users
Multiple commands can be used ; separate

ctrl+alt+F1-F6
Switch console , The default is in F1
ctrl+alt+F3 Enter the text interface

ls List the information of the current directory
-l List details
-a Do not ignore hidden files
-R Represent recursion
ls -l /tmp/ List tmp Details of the catalogue
ll = ls -l

–help Help file

adopt ssh Remote connection
ssh [email protected] Address
Use xshell

Simple method
Sign in root user
dhclient dhcp Get address
ipconfig Check the address
Find the address of the same network segment as the virtual network card
ssh root@x.x.x.x
exit sign out

For the convenience of writing static IP, Specific operation reference : Preparation for installation

whoami Output the current user

date Show date
+%F Output in the mode of year month day (-)
+%T Output in the mode of year month day (:)

passwd Change user password , The new password needs to be case sensitive , There are letters and so on
root You can change everyone's password , No complexity limit
passwd user name

file Test file type
file /xxx/ file

View file contents
cat List all contents of the file
head Before listing files 10 That's ok
tail After listing the files 10 That's ok
more Show a part first , Show other ,q perhaps ctrl+c sign out
head and tail
-n x List x That's ok

wc Statistics file characters
wc /xx/ file

history Call up all the running commands
! x call x The command
! xxxxxxx Match and run the command from back to front

tab completion
alt+. List the last field of the previous command
ctrl + c Closing order
\ A newline
ctrl a Switch to the head
ctrl e Tail of switch

原网站

版权声明
本文为[Grey rain]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140524343498.html