Interview Questions: common linux commands and common linux commands
Command for displaying directories and files
Ls: Command Used to view all folders.
Dir: command Tree used to display the specified folder and Directory: list the directory content in a Tree chart
Du: displa
Common commands in Linux (1) and Common commands in linux
Address:Http://www.cnblogs.com/archimedes/p/linux-commands1.html, Reprinted, please specify the source address.Ls command
Ls is used to list the contents of a directory. It is one of the most commonly used
Head and tail commands for linux commands, and tail commands
Head
Syntax
Example
Tail
Syntax
Example
Example of combined head and tail usage
Head syntax
head [-n -k ]... [FILE]...Example
The first 10 rows are displayed by default.
head /etc/passwd
Displ
different jobs. it is worth noting that: multi-User multi-task operations are not performed by the keyboard and display of a single machine at the same time. multiple users may log in remotely. Line, such as remote control of the server. Anyone with user permissions can perform operations or access. 3. user roles are differentiated. users are divided into roles in the system, in Linux, permissions and tasks are different due to different roles. it is
Common Linux commands (version 2) and common linux commandsPermission management commands
1. chmod [change the permissions mode of a file]:/bin/chmod
Syntax: chmod [{ugo} {+-=}{ rwx}] [file or directory name] // intuitive
E. g. chmod u + wx filename
Chmod o-x filename
Chmod g = rwx filename
Or: chmod [mode = 421] [file
Linux built-in commands and linux creation commandsBuilt-in commands
Built-in commands are included in the Bash tool set. This mainly takes into account the execution efficiency issue-the built-in commands will be executed faster
Common linux commands and common linux commands
Common commands
Ls display file or directory
-L list file DETAILS l (list)
-A: List all files and directories in the current directory, including hidden a (
Add user Two-step walk: 1.useradd username 2.passwd PSRights Management CommandsCommand name:chmod->>change The permissions mode of a fileCommand path:/bin/chmodExecute Permissions: All UsersSyntax: chmod [{u g o} {+-=}{rwx}][file or directory][mode = 421] [File or directory]+: Increase Permissions-: Reduce permissions=: Give permission directlythe focus of mastery is to use the digital way of authority control, r=4 w=2 x=1.rwxr-xr--= 754Rw-r-x--x = 6
roles are differentiated. Users are divided into roles in the system, in Linux, permissions and tasks are different due to different roles. It is worth noting that user roles are identified by UID, especially UID. In system management, the system administrator must stick to the unique UID feature. root User: The system is unique and real. You can log on to the system, operate any files and commands of the
One, the Linux CPU sizeCat/proc/cpuinfo |grep "model name" cat/proc/cpuinfo |grep "Physical ID"Description: Detailed information about each CPU can be seen in/proc/cpuinfo under Linux. But for a dual-core CPU, you will see two CPUs in the Cpuinfo. It is often mistaken for a two single-core CPU.You should actually differentiate between single-core and dual-core by physical Processor ID. The physical Process
First, let's take a look at the more than 10 monitoring Commands We're talking about: 1.dstat--Multi-type resource statistic tool the command consolidates the Vmstat,iostat and Ifstat three kinds of commands. It also adds new features and features that allow you to see all of your resource usage in a timely manner, allowing you to compare and integrate differe
putting the following command into a new line, in this way, all subsequent commands are executed, so echo 4 can be executed.
$ Echo 1
Echoo 2 Echo 3; echo 4
1
-Bash: echoo: command not found
4
The execution of echoo 1 fails, followed by "|" So echo 2 is executed, echo 2 is executed successfully, followed by two "|" So echo 3 and echo 4 are not executed, the following encountered , and the previous comman
Tags: CPU BSP picture com inux font exit ptime UIOne, use W to view the system loadW, uptime View system load, 0.00 means 1 minutes load 0Cat/proc/cpuinfo View CPU CoresSecond, Vmstat command, view process, CPU, memory, swap, IO, systemR, SWPD, Si, so, Bi, bo, US, WADynamic display 5 times per secondRun, block process waits, swap partition memory is not enough to put,Si/so how many kilobytes of data from swap into/out memory, Bi/bo read/write memory from disk, US user consumes CPU percentage, do
In Linux, how does one view, kill, and start processes? (Common commands), common linux commands
Keywords: linux Process query, killing process, Starting Process
1. Check the process
Ps command to find the process-related PID:
Ps a shows
Basic Search commands and information in Linux, and query commands in linux
Searching for commands and hardware information is the most common operation for daily system management and maintenance. Next we will make a brief comparison of the Basic Search
Common Linux commands () and common linux commands
In Linux, The grep command is a powerful text search tool that uses regular expressions to search for text and print Matching lines. Grep stands for Global Regular Expression Print, which indicates the Global Regular Express
Common Linux commands-permission management commands-Other permission management commands, and common command permission management
Command name: chownEnglish: change file ownership
Command path:/bin/chown
Syntax: chown [user] [file or directory]
Function Description: Change the owner of a file or directory.
Exam
Common linux commands 2 and common linux commands
Before reading this article, you can first read this article, which provides 20 commands that are very useful to new Linux beginners. This article is written in what was not found
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.