Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

First acquaintance of linux

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Download centos image

It is best to use a domestic cloud image address to download the system image, which is faster.

Ali Yun official mirror station

NetEase open source image station installs a virtual machine (don't write it here, it's too easy)

Linux server initial

Modify the computer name

Hostnamectl set-hostname lan view current working directory

Pwd commands for viewing ip ifconfig ip a checks whether the ip is obtained and whether the virtual machine is bridged

If the ip is not obtained in dhcp mode, restart the Nic service

Systemctl restart network.service

Specification of catalogue

. Represents the current directory

.. Represents the directory at the next level

~ the home directory of the currently logged in user

Previous working directory

Preliminary knowledge of linux directory structure and basic commands

There is only one root "/" file system under linux

Pwd basic operation command

Cd changes directories

Increase:

Mkdir aa creates a directory (folder) called aa

Touch ab creates a file called ab

Delete:

Rm-r aa deletes the aa directory, but needs to ask if you want to delete it

-r indicates recursive deletion

-f means mandatory, unconditional deletion

Rm-rf ab does not prompt to delete the ab file

Change:

Mv aa bb changed the directory named aa to bb

Check:

Ls to view the file name under the directory

Ls-l view the details of a file or directory under a directory

-l View details

-a view hidden files

Cat ab.txt views the contents of the file

Tail-f ab.txt real-time monitoring file content

More ab.txt pagination to view the contents of the file

Init 0 shutdown init 3 command line mode init 5 view mode init 6 restart shutdown-h 0 shutdown reboot restart

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report