Alibabacloud.com offers a wide variety of articles about debian linux commands pdf, easily find your debian linux commands pdf information here online.
/net/ipv4/ip_forward activate IP routingHostname show hostname of systemHost www.example.com lookup hostname to resolve name to IP address and viceversa (1)nslookup www.example.com lookup hostname To resolve name to IP address and viceversa (2)IP link Show Show link status of all interfacesMii-tool eth0 Show link status of ' eth0 'Ethtool eth0 Show statistics of the network card ' eth0 'Netstat-tup Show all active network connections and their PIDNETSTAT-TUPL Show all network services listening
;/proc/sys/net/ipv4/ip_forward activate IP routingHostname show hostname of systemHost www.example.com lookup hostname to resolve name to IP address and viceversa (1)nslookup www.example.com lookup hostname To resolve name to IP address and viceversa (2)IP link Show Show link status of all interfacesMii-tool eth0 Show link status of ' eth0 'Ethtool eth0 Show statistics of the network card ' eth0 'Netstat-tup Show all active network connections and their PIDNETSTAT-TUPL Show all network services
interfacesMii-tool eth0 Show link status of ' eth0 'Ethtool eth0 Show statistics of the network card ' eth0 'Netstat-tup Show all active network connections and their PIDNETSTAT-TUPL Show all network services listening on the system and their PIDTcpdump TCP port Show all HTTP trafficIwlist Scan Show Wireless networksIwconfig eth1 Show configuration of a wireless network cardHostname show hostnameHost Www.server110.com lookup hostname to resolve name to IP address and viceversaNslookup www.serve
Linux Common commandsSystem InformationThe processor architecture of the Arch Display machine (1)UNAME-M Display the processor architecture of the machine (2)Uname-r displaying the kernel version in useDMIDECODE-Q Display hardware system components-(SMBIOS/DMI)Hdparm-i/DEV/HDA lists the architecture characteristics of a diskHDPARM-TT/DEV/SDA performing a test read operation on the diskCat/proc/cpuinfo displaying information for CPU infoCat/proc/interr
/72.Suse Linux Enterprise 123.Debian Linux 7.84.Ubuntu Linux 14.10/15.04/16.04Red Hat Series versions1. Red Hat Linux Enterprise Edition-Abbreviated Rhel-Official website http://www.redhat.com2.Fedora Core Community Edition-Official website: http://fedoraproject.org3.CentOS
systemHost www.example.com lookup hostname to resolve name to IP address and viceversa (1)nslookup www.example.com lookup hostname To resolve name to IP address and viceversa (2)IP link Show Show link status of all interfacesMii-tool eth0 Show link status of ' eth0 'Ethtool eth0 Show statistics of the network card ' eth0 'Netstat-tup Show all active network connections and their PIDNETSTAT-TUPL Show all network services listening on the system and their PIDTcpdump TCP port Show all HTTP traffic
This article introduces you to several interesting Linux commands.1. PV commandSometimes we see on the movie screen some subtitles at a constant speed display, like someone on the side of the keyboard, the same side display. This effect can be achieved with the PV command on Linux. By default, Linux does not have a PV
floppy diskMount/dev/cdrom/mnt/cdrom mount a CDROM or dvdromMount/dev/hdc/mnt/cdrecorder mount a CDRW or dvdromMount/dev/hdb/mnt/cdrecorder mount a CDRW or dvdromMount-o Loop File.iso/mnt/cdrom mount a file or ISO image fileMount-t Vfat/dev/hda5/mnt/hda5 to mount a Windows FAT32 file systemMount/dev/sda1/mnt/usbdisk mount a USB drive or flash deviceMount-t Smbfs-o Username=user,password=pass//winclient/share/mnt/share to mount a Windows network shareDisk spaceDF-H displays a list of the partiti
disk is fullMount/dev/fd0/mnt/floppy mount a floppy diskMount/dev/cdrom/mnt/cdrom mount a CDROM or dvdromMount/dev/hdc/mnt/cdrecorder mount a CDRW or dvdromMount/dev/hdb/mnt/cdrecorder mount a CDRW or dvdromMount-o Loop File.iso/mnt/cdrom mount a file or ISO image fileMount-t Vfat/dev/hda5/mnt/hda5 to mount a Windows FAT32 file systemMount/dev/sda1/mnt/usbdisk mount a USB drive or flash deviceMount-t Smbfs-o Username=user,password=pass//winclient/share/mnt/share to mount a Windows network share
capacity sizeRpm-q-a--qf '%10{size}t%{name}n ' | SORT-K1,1N the space used by the installed RPM package, based on size (Fedora, Redhat class System)Dpkg-query-w-f= ' ${installed-size;10}t${package}n ' | SORT-K1,1N Displays the space used by the installed Deb package based on size (Ubuntu, Debian System)Return Top Index ^Users and GroupsGroupadd group_name Create a new user groupGroupdel group_name Delete a user groupGroupmod-n new_group_name old_grou
on size (Ubuntu, Debian System)Users and GroupsGroupadd group_name Create a new user groupGroupdel group_name Delete a user groupGroupmod-n new_group_name old_group_name Renaming a user groupUseradd-c "Name Surname"-G admin-d/home/user1-s/bin/bash user1 create a user who belongs to the "admin" user groupUseradd User1 create a new userUserdel-r User1 Delete a user ('-R ' exclude home directory)Usermod-c "User FTP"-G system-d/ftp/user1-s/bin/nologin us
(Ubuntu, Debian System)Return Top Index ^Users and GroupsGroupadd group_name Create a new user groupGroupdel group_name Delete a user groupGroupmod-n new_group_name old_group_name Renaming a user groupUseradd-c "Name Surname"-G admin-d/home/user1-s/bin/bash user1 create a user who belongs to the "admin" user groupUseradd User1 create a new userUserdel-r User1 Delete a user ('-R ' exclude home directory)Usermod-c "User FTP"-G system-d/ftp/user1-s/bin/
kill command.Packaging compression-related commandsGzip:BZIP2:Tar: Packaging compression-C Archive File-X Compressed file-Z gzip Compressed file-j bzip2 Compressed Files-V shows the compression or decompression process V (view)-F Use file nameCases:TAR-CVF/HOME/ABC.TAR/HOME/ABC only packaged, not compressedTAR-ZCVF/HOME/ABC.TAR.GZ/HOME/ABC packaged and compressed with gzipTAR-JCVF/HOME/ABC.TAR.BZ2/HOME/ABC packaged and compressed with bzip2Of course, if you want to decompress, just replace the
This may be useful-Linux Quick Start, basic commands, C Programming basics, embedded system basics (to)-Linux general technology-Linux programming and kernel information. The following is a detailed description. [I = s] This post was last edited by kkkdang
Linux Quick Sta
Common shutdown/Restart commands under Linux typically include:Shutdown, reboot, Halt, Poweroff and so on, of course we can use Init run level RunLevel 0 that is halt to shut down, or use init run level RunLevel 6 that is reboot to perform a reboot.Of course, there are some subtle differences in the way these shutdowns or restarts are made.First, make clear that the RunLevel operating level of the
(shown through the progress bar), the current speed, the total data transferred, and the estimated time remaining.
"To use PV, you need to match the appropriate options and put it in a pipeline between two processes." The standard input of the command will be passed through the standard output, and the progress will be output to the standard error output. ”
The above explanation comes from the help page for this command.
Download and install
The Debian
combination of several commands to use, the latter command in addition to the results of a previous command.Example: Grep-r "Close"/home/* | More in the home directory to find all files, including close files, and paging output.Linux Package Managementdpkg (Debian package) management tool with a. deb suffix. This approach is suitable for systems that are not networked.For example, install the tree command
Requirement background:
Corresponds the data in the database to the associated file path one by one. Such as:
Modify the File_path:/opt/downloads/20121105/001.pdf in table File_config to:/opt/downloads/20121107/001.pdf
This requires two steps, one is to update the database, and the other is to move the file in the database with the path consistent. This seems to be so simple, but in the actual operation of
Summary of common Linux commands:
I. Common commands:
1. Date: print or set the system date and time
2. stty-A: You can view or print control characters (CTRL-C, Ctrl-D, Ctrl-Z, etc)
3. passwd: print or set the system date and time (view with passwd-h)
4. logout and login: Shell logon and logout commands
5. pwd: print
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.