Linux common commands in English prototype

Linux common commands in English and Chinese to explain the full name of the Linux system 


man: Manual means the manual, you can use this command to query the use of other commands.

pwd: Print working directory means that password.

su: Swith user to switch the user to root

cd: Change directory Change directory

ls: List files list the files in the directory

ps: Process Status Process Status

mkdir: Make directory create a directory

rmdir: Remove directory Mobile Directory

mkfs: Make file system create a file system

fsck: File system check file system check

cat: Concatenate series

uname: Unix name system name

df: Disk free spare hard disk

du: Disk usage hard disk usage

lsmod: List modules list of modules

mv: Move file Move files

rm: Remove file deleted file

cp: Copy file to copy files

ln: Link files Link files

fg: Foreground prospects

bg: Background background

chown: Change owner change owner

chgrp: Change group user group changes

chmod: Change mode to change the mode

umount: Unmount Uninstall

dd: Originally described by their function should be "Convert an copy" name "cc", but "cc" has been used to represent "C Complier", so named for the "dd"

tar: Tape archive extracting file

ldd: List dynamic dependencies list the dynamic dependencies

insmod: Install module installation module

rmmod: Remove module Delete module

lsmod: List module list module
sudo is short for superuser do

 

reboot: Restart
logout: Exit cancellation
binary: the binary
device: means equipment
etcetera: system configuration files, etc.
recursion: recursively (-R & lt)
disrecursion: no recursion) (- D)
Force: directly covers (-f)
All: all ( -a)
List: List all information (-l)

if: prompted to overwrite (-I)
regular files (-): text files and binary files
catalog file (D): Folder
connection files (L): ln file created
special files: device file (b, c) and pipe file (p)
graphical interface to log on to select from the menu or shortcut keys ctrl + alt + backspace
modify the login screen startup: vi / etc / inittab
3 text 5 image

Using man or info command to view the relevant help
using fdisk -l displays the partition situation; df -h Displays disk usage
using du -sh / * to see a (root directory folder) directory occupies disk situation
to see linux version: uname -a
clear the screen: clear
inspection repair the file system (improper shutdown): fsck
find files: find / etc -name filename (/ etc directory starting)
lists the details of a directory: ls -l / etc ( / etc directory)
current directory: cd the parent directory:. cd .. View directory path: pwd
create a directory: mkdir 1 (1 is the file name)
to delete empty directories: rmdir 1 does not delete empty directories or files: rm -r (-f) 1
View user information: vi / etc / passwd
shadow password: vi / etc / shadow
view the contents of a file: cat / etc / inittab
move files: mv 1.c / root (movement 1. c to root in)
to create a file: vi 1.c
under cp /root/1.c/home/1.c (copied from the root directory to the home directory): copy files to the specified directory
compare two files: diff 1.c cmp 1.c 2.c 2.c or
standard user input: cat (An input after the exit ctrl d)

Display redirection: ls -l> ls.txt (displayed on ls.txt; 0> input redirection; 1> output redirection; 2> error redirection)

Read and write permissions settings file: chmod u + w 1.c (increase access to the file owner to write 1.c)
chmod GR 1.c (delete Working Group 1.c read permission)
chmod + O the X-1. c (1.c add other users to execute permission)
chmod AW 1.c (delete permissions for all users of 1.c write)
lists the file index is good: ls -i

Construction of soft and hard connection: in -s / home / lxt008 / 008 (the lxt008 that is linked to 008 008 is a shortcut lxt008 the absence of -s is a hard link)


View DNS client configuration: more /etc/resolv.conf
view ip address: ifconfig (look above both ip are consistent, if not in line with the following command to modify)
change the network configuration: netconfig (well after modification, to use the service network restart after the restart before taking effect network)
to view the default path off: route -n
modify the default gateway: route add default gw 192.168.88.1 (ip default gateway and can only networking on the same network segment)
, or use ifconfig eth0 192.168.88.8 netmask 255.255. 255.0 modify ip and subnet mask
end of the process: ctrl + c (or D)
to view network status: netstat


View a rpm package is installed: a.rpm rpm -qi
install a package: rpm -ivh a.rpm
package: tar -cvf lxt008.tar / home / lxt008 ( the road map in your home directory folder packed into lxt008 lxt008.tar v f is abbreviated to view file)
unpack: tar -xvf lxt008.tar / home (the home to decompress)
view the contents of the package: tar -tvf lxt008.tar
packing and compression: tar -czvf 008.tar. gz / home / lxtoo8
extract package: tar -xzvf 008.tar.gz / home


Comment out: #
Create a shell script: vi first.sh
displays the string: echo "Wang Lin"
waiting for input from the terminal to the variable: read f (f variable)
display variable content: echo $ {f}
View environment variables: env
not need to wrap: -n
view processes that are running: ps
kill a thread: kill 1186 (1186 is the thread number)
to set a process running in the background: find / -name passwd & (to find / -name passwd process set Background process)

Pipeline: ls -l / dev | more (Details are listed under the dev directory but also pagination)

Save the file in the vi editor: w + file name
display line numbers the SET NU ::
----------------

Original link: https: //blog.csdn.net/mark007/article / details / 84225578

Guess you like

Origin www.cnblogs.com/zhouho/p/11948875.html