Alibabacloud.com offers a wide variety of articles about linux commands for interview, easily find your linux commands for interview information here online.
Summary of Common commands in linux and summary of Common commands in linuxClear terminal screen
Clear terminal screen usageClearCommand orCtrl + LCombination of shortcut keys. However, this operation does not actually clear the screen. If you scroll up, you can still see the previous output.
So you can also useResetCommand to truly clear the terminal screen.De
Xin Xing sorts out common query commands in Linux, and Xin Xing sorts out linux commands.
View version, operating system, or cpu Information
File:/etc/issue view OS version/proc/cpuinfo view cpu Information
Command: hostname to view the computer name uname to view the operating system information lspci to list all pci
Common Linux commands-file search command find, common linux commands
Command name: findCommand path:/bin/findSyntax: find [search range] [matching condition]Function Description: file search
ExampleFind/etc-name initFind the file init In the/etc directory-Iname is case insensitive.* Represents a wildcard? Represent
Common linux commands and linux commands
1. Network Parameter Setting command
1. ifconfig: Query and SET network card and IP network segment parameters
1.1 man manual Definition
DESCRIPTION Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces
Summary of Common commands in Linux (7) Security Settings and Common commands in linux
Security Settings
Category
Command
Option
Annotation
Security PolicySelinux
Setenforce
Number (0, 1)
Set selinux status, 0 closed, 1 Enabled
Getenforce
Common commands in Linux System (4) program and resource management, Common commands in linux
Program and Resource Management
Category
Command
Option
Annotation
Background Management
Command +
Move the task to the background
Ctrl + z
Pa
Linux basic commands and linux commandsLs command
Pwd: display the current directory touch 11.txt: Create a txt file named 11 mkdir laowang under the current directory: Create a folder named laowang ls-a-l-h in the current directory: it is equivalent to ls-alh.-a is used to display all files in the current directory, including hidden files.-l is displayed as a li
Common commands for file search in Linux and Common commands for linux
File SEARCH Command: find
1. Search by file name
1.1. Search for precise files
Find path-name file name
1.2. Search for a file whose file name contains a string.
Find path-name * file name *
1.3. Search for files prefixed with a string.
Find path-na
Linux Network-related commands and linux Network-related commands
Ifconfig
Ifconfig is the command to view the NIC in centos6. In centos7, you must install the net-tools package before using it?Nic configuration file:/etc/sysconfig/network-scripts/ifcfg-ens33?Command: ifconfig
[root@shuai-01 ~]# ifconfigens33: flags=4
Network command: Ping (Test network connectivity)Network command: Ifconfig (view and set network card information)Note: When viewing the NIC information, enter the Ifconfig command directly.Network command: Last (lists user information for current and past logged-in systems)Network command: traceroute (shows the path and information of the packet to the target host)Network command: Netstat (display network-related information)Network command: Setup (configure the Network for permanent entry)Note
Linux Common Command Encyclopedia 100:
1, echo "AA" "Test.txt and Echo" BB "" test.txt//"empty the original file, and the content written to the file," "Put the content to the end of the file
2. chmod go+w-r/home/zhangy//To add Write permissions to group users and other users
3, TAR-TZVF test.tar.gz//List of archived content
4, Du-ah//view file list size
5, Du-sh//View the total size of all files
6, Echo ' 1+2 ' |bc-l//mathematical operation
the default permissions that correspond to the defaults.[[email protected] ~]# umask-su=rwx,g=rx,o=rx[[email protected] ~]# mkdir/tmp/test[[email protected] ~]# ls-ld/tmp/tes Tdrwxr-xr-x. 2 root root 4096 January 8 00:32/tmp/test[[email protected] ~]#When creating a new file, the default is no execute permission for security purposes. For example, create a new Test1.txt file under the TMP directory with the following default permissions:[Email protected] ~]# touch/tmp/test1.txt[[email protect
Tags: absolute path installation file output Reference Declaration switch Directory View extLinux common commands (Common Commands for Linux)1. Statement, this article only write based on the Bash shell commonly used commands, if you encounter the command in the course of use, may be updated, the command has been repla
The command format for Linux is generally: command [-options] [parameters], such as LS-LA/ETC, you need to note the following: 1) Individual commands are not used in this format, 2) when there are multiple options, can be written together; 3) there is a simplified option (-) and a full option, such as-a equals-all.(1) LSThe function of the LS command is to display the directory file, the original is a list,
Five search commands in Linux and five search commands in Linux
Recently, I am studying Linux. Below are some notes.
When using a computer, you often need to find files.
In Linux, there are many ways to do this. The foreign websit
Network Communication commands (relatively simple ):
1. write/usr/bin/write
Write [user name]
Used to send information to a user, provided that the user has logged on to the server host
Otherwise, there is no way to leave a message for him. Therefore, write is a real-time communication tool.
End the communication with Ctrl + D
E.g. write guest
2. wall [write all]/usr/bin/wall
Used to broadcast information to all users
Wall [message] [file name]
3. pin
Refresh a simple passwd file for linux commands and passwd for linux commands
**************************************** ******************************** ***************************************
Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. Please indicate the source when you repost
integer.In other words, a mutex can only be used for mutually exclusive access to a resource, and it cannot implement multi-threaded mutex issues for multiple resources.The semaphore can realize multi-thread mutual exclusion and synchronization of multiple homogeneous resources.When the semaphore is a single-valued semaphore, it is also possible to complete mutually exclusive access to a resource.3. The lock and unlock of the mutex must be used by the same thread, the semaphore can be freed by
Details of Common commands on Linux servers and Common commands on linuxI. User
1. useradd is used to create an account.
Useradd newname // create newnamepasswd newname // set change the password. After entering this command, you will be prompted to enter the password
2. delete a user
userdel newname
3. Switch users
su - youruser
4. ssh remote login
ssh -l root
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.