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

Linux basic instruction

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

Share

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

Foreword:

Most of the computer systems used in the enterprise environment are Linux, which is open source, free to install, easy to install and powerful, but in most cases there is no graphical interface to use commands to operate the operating system to achieve what we want. Although the windows system we are familiar with is powerful and easy to use, it is faced with more problems and it needs to be paid for, so there are not many cases of using windows in enterprises. Here are some simple and basic Linux operation commands

1. Shutdown, restart, logout commands:

Shutdown, its function is to turn off the computer.

Poweroff, its function is to turn off the computer (this shutdown is more useful)

Reboot restart the computer

two。 Inquiry and help commands:

Man looks at the command help, the dictionary of commands. (it is difficult to find man men)

Help View Linux built-in Command help

3. File and directory manipulation commands:

Ls list, whose function is to view the contents of the directories listed below

Cd change directory, whose function is to switch from the current path to the directory you specify (the switching path starts from the root)

Find, its function is to find the directory you specify and the text files under the directory.

Cp copy, whose function is to copy, for example (cp / etc/hostname / root)

Mkdir make directories, whose function is to create a directory that you specify

Pwd print working directory, whose function is to display the current absolute path

Mv move, whose function is to move the directory you specify to the new path you specify; and the rename function

Rm-rf its function is to force the deletion of one or more specified files or

Touch, its function is to create a new file.

File, its function is to display the type of file.

4. File compression and decompression command:

Tar, its function is to package and compress specified files.

Unzip, its function is to extract the specified file.

Gzip is a compression tool with roughly the same function as the tar command.

Zip, it's a decompression tool.

5. View files and contents command

Cat concatenate, whose function is to directly display the contents of a specified text file to the command line

More, its function is to display the contents of the file in pages.

Head, its function is to display high-quality content of files.

Tail, its function is to display the content at the end of the file.

Sort, its function is to sort the contents of the file.

Vim its function is a text editor, followed by a space and a name to create a text

6. Display information command:

Uname, its function is to display information about the operating system.

Hostname its function is to display the current system hostname (the command "hostname you want to define" > hostname can change the hostname)

Stat, its function is to display the status of files or file systems.

Top, its function is to display the usage of the system.

Free, its function is to view system memory.

Date, its function is to display and set system time.

Cal, its function is to view calendar time information.

7. System user management commands:

Useradd, its function is to add a new system user.

Userdel, its function is to delete existing system users.

Passwd, its function is to change the password of the system user.

Su, its function is to switch system users.

8. Basic network operation commands:

Ssh, its function is to log in to another computer remotely with an encryption protocol.

Scp its function is to remotely transfer specified directories or text files

Ping tests network connectivity between hosts

Route, its function is to display and set the routing table of the Linux system.

Ifconfig, its function is to view your network configuration.

Ifup, its function is to open the network card.

Ifdown, its function is to turn off the network card.

9. Disk and file system related commands:

Mount, its function is to hang on the file system.

Umonunt, its function is to unmount the file system.

Mail, its function is to send and receive mail.

Mutt, its function is to manage email.

Parted its function is the disk partition command, there is no disk size partition limit

Mkfs, its function is to create Linux file system.

10. System user permissions command:

Permissions have r (read permission) w (write permission) x (execute permission) u (master) g (group) o (others)

Chmod, its function is to change file or directory permissions.

Chown, its function is to change the master and group of a file or directory.

Umask, its function is to display or set the permission mask.

11. The command to view the login information of system users:

Who, its function is to display the currently valid system user name

Last, its function is to display users who are now logged in to the system.

twelve。 Built-in commands:

Echo, its function is to output the specified string

Yum is designed to automate and simplify software repositories.

Alias, its function is to temporarily set system aliases.

Unalias, its function is to cancel aliases.

Ctrl+l, its function is to clear the terminal command line.

History, its function is to view commands used in history.

13. Administrative commands for the process:

Kill, its function is to terminate the process or kill the specified program

The function of service is to start, stop and shut down the services, and display the current status of all the services in the system.

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