In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Preface
What is Linux?
Linux is a free-to-use and free-spread Unix-like operating system. It is a multi-user, multi-task, multi-threaded and multi-CPU operating system based on POSIX and Unix. It runs major Unix tools, applications, and network protocols. It supports 32 bit and 64 bit hardware. Linux inherits the design idea of Unix with network as the core, and is a multi-user network operating system with stable performance.
Features: free, reliable, secure, stable, multi-platform.
What is the Linux command?
The linux command is a command that manages the Linux system. For the Linux system, no matter the CPU, memory, disk drive, keyboard, mouse, or users are all files, the commands managed by the Linux system are the core of its normal operation, similar to the previous DOS commands. There are two types of linux commands on the system: the built-in Shell command and the Linux command.
1. Shell
A special program running in 1.Linux system
two。 Act as a "translator" before the user and kernel
3. When a user logs in to the Linux system, a shell program is automatically loaded
4.Bash is the default shell program used in Linux systems
The file is located in / bin/bash
Two Linux commands
Linux command classification
III. Linux command line format
General command line format: command word + [option] + [parameter]
Command word: operation + option: function + parameter
Auxiliary operation of Linux command line
Tab key: automatic completion
Backslash\: force line wrapping
Shortcut key Ctrl+U: clear to the beginning of the line
Shortcut key Ctrl+K: clear to the end of the line
Shortcut key Ctrl+L: clear the screen
Shortcut key Ctrl+C: cancel editing this command
Linux common commands
Help: view bash internal command help information
-- help: for most external commands
Man: read the man page
Arrow keys scroll the text; Page up and Page down turn the page; Q and Q exit; press "/" to find the content
Pwd: displays the location of the user's current working directory, and displays the absolute path, root directory
Cd: reach a destination directory
Cd ~: home directory
Cd -: change to the directory where you were last located
Cd.. Return to the upper directory
Cd../../: return to the upper directory
Cd / root directory
Ls: list displays directory contents
Ls+ [options] + files or directories
Ls-l: displays the details of the file
Ls-a: view hidden files
Ls-A view hidden files except. ..
Ls-d displays the information of this directory
Ls-h friendly form to display information with units
Ls-R recursive form
Distinguish file types by color
Black-data file
Blue-directories, folders
Red-compressed package
Green-execution files, command files, scripts
Sky Blue-linked files, shortcuts
Huang-device files, disk files
Set alias
Alias myls= "ls-alh"
Du carries on the statistics
Du-a statistics of all
Du-h friendly form has a unit
Du-s only counts the total size
Mkdir creates an empty directory
Soft links: shortcut
Hard links: aliases for fil
File node: a unique identification sequence of files stored on disk
Cp replication
Rm-f deletion
Which command | Program name or which-a command | Program name
Find+ Lookup range + Lookup conditional expression
Using recursive method, fine search is carried out according to different attributes such as name, type and size of the target.
Find-name, find-size, find-user, find-type
"- a" means and (and)
"- o" indicates or (or)
Summary
Learning Linux commands is a difficult hurdle for us, and the only trick is that we need to knock more and practice more before we can master it skillfully. This is the basis of our study, as long as we master the commands well, we can make better progress in the next study, otherwise we will come into contact with more and more orders in the future, if we do not absorb them well now, it will be more difficult to absorb them in the future. So we must practice more!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.