Linux Common Command collation

Source: Internet
Author: User
Tags create directory gpg recode rsync fully qualified domain name

System Information

1. Uname-a-r-n-M

-a-all; Print all information in the following order, except omit-p and I if unknown:

-S, kernel name; print kernel name

-N, node name; The host name of the print network nodes

-R, kernel release, printed kernel version

-V, kernel version; Print kernel version

-M, machine; the name of the printing machine hardware ==arch

-P, processor; print processor type or "Unknown"
-I, I, hardware platform; Print hardware platform or "unknown"

-O, operating system;

--help-help show this help and exit

--version-version, output version information and exit

2. Dmidecode commonly used:-d-p

-D read memory files from device (default:/DEV/MEM)

-Q Display hardware system components-(SMBIOS/DMI)

-S only displays the value of the DMI string to determine the keyword

-T displays only entries of type type

-U, dump; do not decode entries as hexadecimal dump contents

-H, help; Show usage information and exit

-V, version, show version and exit

3. CPU Memory Swap partition ...

Cat/proc/cpuinfo displaying information for CPU info
Cat/proc/interrupts Display Interrupt
Cat/proc/meminfo Verifying memory usage
Cat/proc/swaps shows which swap is used
Cat/proc/version version of the kernel is displayed
Cat/proc/net/dev Display network adapter and statistics
Cat/proc/mounts displaying the loaded file system

4. Hostname

-A aliases

-D Displays the name of the DNS domain

-f file name; Read host name from specified file

-F FQDN, long; display FQDN (fully qualified domain name

-a all-fqdns; Displays the FQDN of all machines. Lists all configurations for this option, in all network interface configurations, network address translation DNS domain names

-h Help; Print use message and exit.

-I all IP addresses; Displays the host's IP address (es). Note that this only works on the hostname that can be resolved. Avoid using this option; Use host name-full IP address instead.

-I all IP addresses; Displays the network addresses of all hosts. List all objections-this option wants to be on all network interface addresses. The loopback interface and the IPV6 link address are omitted. Options-Instead, this option does not depend on name resolution. Do not make any assumptions about the sequential output.

-S, short; displays the short hostname. This is the host name at the first point.
-V, version, success standard output print version information, and exit.

-V Detail

-Y,yp,nis; display NIS domain name

5. Lspci-tv List of PCI devices
LSUSB-TV Display USB Device
Date Displays the system date
Cal 2007 Displays the 2007 calendar table
Date 041217002007.00 sets the day and time of day-the year of the month. seconds
Clock-w saving time changes to the BIOS

----------------------------------------------------------------------------------------------------------

Shutdown, restart

Restart command:
1. Reboot
2. shutdown-r now reboot (root user)
3. Shutdown-r 10 over 10 minutes automatic restart (root user use)
4. Shutdown-r 20:35 Restart at 20:35 time (root user)

5. Init 6 Restart

If you set the restart through the shutdown command, you can cancel the restart with the Shutdown-c command.

Shutdown command:

1. Halt immediately shut down the machine
2. Poweroff immediately shut down the machine
3. Shutdown-h now shuts down (root user)
4. shutdown-h 10 10 minutes after auto power off

5. Init 0 shutdown

6. Telinit 0 Shutdown system

7. Logout Logoff

If you set the shutdown through the shutdown command, you can cancel the restart with the Shutdown-c command.

----------------------------------------------------------------------------------------------------------

Files and directories

The CD enters the directory; ls views the contents of the directory; tree displays files and directories starting with the root directory, Lstree; shows the tree structure of files and directories starting from the root directory; PWD Displays the current directory absolute path; mkdir create directory; RM Delete;

Ln-s file1 lnk1 Create a soft link to a file or directory
ln file1 lnk1 Create a physical link to a file or directory
Touch-t 0712250000 File1 Modify the timestamp of a file or directory

Iconv-l List of known encodings

----------------------------------------------------------------------------------------------------------

File Search

Find/-name file1 from '/' to the root file system to search for files and directories
Find/-user User1 search for files and directories belonging to user ' User1 '
Find/home/user1-name \*.bin in directory '/home/user1 ' search for files with '. Bin '
Find/usr/bin-type f-atime +100 Search execution files that have not been used in the last 100 days
Find/usr/bin-type f-mtime-10 search for files created or modified within 10 days
Find/-name \*.rpm-exec chmod 755 ' {} '; Search for files ending with '. RPM ' and define their permissions
Find/-xdev-name \*.rpm search for files ending with '. RPM ', ignoring removable devices such as optical drives, Czech disks, etc.
Locate \*.ps looking for files ending with '. ps '-run the ' updatedb ' command first
Whereis Halt shows the location of a binary file, source code, or man
Which halt displays the full path of a binary file or executable file

----------------------------------------------------------------------------------------------------------

mount a file system

MOUNT/DEV/HDA2/MNT/HDA2 mount a disk called hda2-ok directory '/mnt/hda2 ' already exists
UMOUNT/DEV/HDA2 unload a disk called Hda2-first from Mount point '/mnt/hda2 ' exit
Fuser-km/mnt/hda2 force unload when the device is busy
Umount-n/mnt/hda2 run unload operation without writing/etc/mtab file-useful when file is read-only or when disk is full
Mount/dev/fd0/mnt/floppy mount a floppy disk
Mount/dev/cdrom/mnt/cdrom mount a CDROM or dvdrom
Mount/dev/hdc/mnt/cdrecorder mount a CDRW or dvdrom
Mount/dev/hdb/mnt/cdrecorder mount a CDRW or dvdrom
Mount-o Loop File.iso/mnt/cdrom mount a file or ISO image file
Mount-t Vfat/dev/hda5/mnt/hda5 to mount a Windows FAT32 file system
Mount/dev/sda1/mnt/usbdisk mount a USB drive or flash device
Mount-t Smbfs-o Username=user,password=pass//winclient/share/mnt/share to mount a Windows network share

----------------------------------------------------------------------------------------------------------

Disk space

Df-a-h-t

-a all; including virtual file system

-B, size of block; use Size-byte block

-I, index node, list index node information instead of block usage

-H Displays a list of the partitions that are already mounted
LS-LSR |more arranging files and directories in size
Du-sh dir1 estimate directory ' Dir1 ' already used disk space '
Du-sk * | SORT-RN display the size of files and directories in terms of capacity size
Rpm-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)

----------------------------------------------------------------------------------------------------------

========useradd adding users
-C Comment Specifies an annotative description.
The-D directory specifies the home directory, and if this does not exist, you can create a directory by using the-M option

The-G user group specifies the group to which the user belongs. A pro.
The-G user group specifies the additional groups to which the user belongs. It's done.

-S Shell S Shell file specifies the user's login shell shell.
-u user number specifies the number of the user, and if there is a number of the specified user, you can reuse the identification number of the other household
–M do not create a host directory

Example: Useradd-u 1000-g g1-g g2-m-s/bin/nologin-e 2016-7-1 username

Note: Create a vfast account, UID is 1000 basic group for G1 additional group for G2 do not create host directory, disable login, expiration time is July 1, 2016

=======usermod Modifying account information
-c Specifies a descriptive description of the annotation
The-D directory specifies the home directory, and if this does not exist, you can create a master directory by using the-M option.

-G user group specifies the group to which the user belongs
-G user group, specifying additional groups to which the user belongs
-S Shell file specifies the user's login shell
-u user number specifies the number of the user, and if you have the-o option, you can reuse the identity of other households
–L Lock Account
–U Unlock Account

========userdel Deleting an account
–r Deleting a host directory
========PASSWD Setting a password

–l Lock Account
–u Unlock Account
–S View account Status

========linux Group account
Collections of users
Group account File/etc/group
Groupadd Adding a group account
Groupdel Deleting a group account
GPASSWD Setting Group members
–a adding members
–d Deleting members

–m Defining member Lists

----------------------------------------------------------------------------------------------------------

Linux Permissions

There are three identities, each of which belongs to the main group of others
Each identity has three permissions for Read (r) (4) Write (W) (2) Execution (x) (1)

========= Modifying file Permissions chmod
1. U Genus G Group O other person a All
2. + Add Permissions – Remove permissions = Set permissions

======== Modify file Ownership chown Chgrp

1. Chown-r username:username filename

2. chown username filename && chgro username filename

ACL Permissions
Set other accounts to have the required permissions
========setfacl settings
-M add
-X Delete

-B Delete all
-K Delete Default

Setfacl-m U1:U2:RW filename

=======getfacl View

Getfacl filename

----------------------------------------------------------------------------------------------------------

Users and a user group

Groupadd group_name Create a new user group
Groupdel group_name Delete a user group
Groupmod-n new_group_name old_group_name Renaming a user group
Useradd-c "Name Surname"-G admin-d/home/user1-s/bin/bash user1 create a user who belongs to the "admin" user group
Useradd User1 create a new user
Userdel-r User1 Delete a user ('-R ' exclude home directory)
Usermod-c "User FTP"-G system-d/ftp/user1-s/bin/nologin user1 to modify users ' properties
passwd changing passwords
passwd User1 Modify a user's password (root only allowed)
Chage-e 2005-12-31 user1 setting the expiration period for user passwords
Pwck checking the file format and syntax corrections of '/etc/passwd ' and the presence of the user
GRPCK checking the file format and syntax corrections of '/etc/passwd ' and the presence of groups
Newgrp group_name Log in to a new group to change the preset group of newly created files

Permissions for files

Use "+" to set permissions, use "-" to cancel
LS-LH Display Permissions
ls/tmp | Pr-t5-w$columns the terminal into 5 column display
chmod ugo+rwx Directory1 Set directory owner (U), Group (g), and others (O) to read (R), write (w), and execute (x) permissions
chmod go-rwx directory1 Delete Group (g) Read and write execution permissions to the directory with others (O)
Chown user1 File1 Change the Owner property of a file
Chown-r User1 Directory1 Change the owner property of a directory and change the properties of all files in the directory at the same time
CHGRP group1 file1 Changing a group of files
Chown user1:group1 File1 Changing the owner and group properties of a file
Find/-perm-u+s lists all files in a system that use SUID control
chmod U+s/bin/file1 sets the SUID bit of a binary file-the user who runs the file is also given the same permissions as the owner
chmod u-s/bin/file1 Disables the suid bit for a binary file
chmod G+s/home/public sets the Sgid bit of a directory-similar to suid, but this is a directory-specific
chmod g-s/home/public Disable SGID bit of a directory
chmod O+t/home/public Set the STIKY bit of a file-allow only legitimate owners to delete files
chmod o-t/home/public Disable STIKY bit of a directory

Special properties for Files

Use "+" to set permissions, use "-" to cancel
Chattr +a File1 only allowed to read and write files in append mode
Chattr +c File1 allows this file to be automatically compressed/decompressed by the kernel
Chattr +d file1 A file system backup, the DUMP program ignores this file
Chattr +i File1 is set to an immutable file and cannot be deleted, modified, renamed, or linked
Chattr +s File1 allows a file to be safely deleted
Chattr +s File1 Once the application writes to this file, the system immediately writes the result of the modification to the disk
Chattr +u File1 If the file is deleted, the system will allow you to recover the deleted file later.
Lsattr Displaying special properties

----------------------------------------------------------------------------------------------------------

Packaging and compressing files

Bunzip2 file1.bz2 Extract a file called ' file1.bz2 '
bzip2 file1 compress a file called ' file1 '
gunzip file1.gz unzip a file called ' file1.gz '
gzip file1 compress a file called ' file1 '
gzip-9 file1 maximum compression
rar A File1.rar test_file create a package called ' File1.rar '
rar a file1 . rar file1 file2 dir1 simultaneous compression ' file1 ', ' file2 ' and directory ' Dir1 '
rar x file1.rar decompression rar package
Unrar x file1.rar decompression rar package
Tar-c VF Archive.tar file1 Create a non-compressed tarball
TAR-CVF archive.tar file1 file2 dir1 Create an archive file that contains ' file1 ', ' file2 ' and ' Dir1 ' TAR-TF Archive.tar Displays the contents of a package
TAR-XVF Archive.tar release a package
TAR-XVF ARCHIVE.TAR-C/TMP releases the compressed package into the/tmp directory
Tar-c VFJ archive.tar.bz2 Dir1 Create a compressed package in BZIP2 format
TAR-XVFJ archive.tar.bz2 unzip a compressed package in BZIP2 format
TAR-CVFZ archive.tar.gz dir1 Build a zipped package in gzip format
TAR-XVFZ archive.tar.gz unzip a compressed package in gzip format
Zip file1.zip file1 Create a zip-format compression package
Zip-r File1.zip file1 File2 Dir1 compresses several files and directories into a zip-format compressed package
Unzip File1.zip unzip a zip-format package

----------------------------------------------------------------------------------------------------------

RPM Packages-(Fedora, Redhat and similar systems)
RPM-IVH package.rpm Installing an RPM package
RPM-IVH--nodeeps package.rpm Install an RPM package and ignore dependency warnings
Rpm-u package.rpm Update a RPM package without changing its configuration file
Rpm-f package.rpm update one to determine which RPM package is installed
Rpm-e package_name.rpm Delete an RPM package
RPM-QA display all installed RPM packages in the system
Rpm-qa | grep httpd shows all RPM packages with the words "httpd" in their names
Rpm-qi Package_name get special information for an installed package
RPM-QG "System environment/daemons" shows the RPM package for a component
RPM-QL Package_name displays a list of files provided by an already installed RPM package
RPM-QC Package_name Displays a list of configuration files provided by an already installed RPM package
Rpm-q package_name--whatrequires shows a list of dependencies that exist with a RPM package
Rpm-q package_name--whatprovides shows the volume of a RPM package
Rpm-q package_name--scripts Show scripts executed during installation/removal L
Rpm-q package_name--changelog shows the revision history of a RPM package
rpm-qf/etc/httpd/conf/httpd.conf confirm which RPM package is provided for the given file
RPM-QP package.rpm-l displays a list of files provided by a RPM package that has not been installed
RPM--import/media/cdrom/rpm-gpg-key Import Public key digital certificate
RPM--checksig package.rpm confirming the integrity of a RPM package
RPM-QA Gpg-pubkey confirm the integrity of all RPM packages that have been installed
Rpm-v package_name Check file size, license, type, owner, group, MD5 check, and last modified time
Rpm-va Check all installed RPM packages in the system-use with care
RPM-VP package.rpm confirm that an RPM package is not installed
Rpm2cpio package.rpm | Cpio--extract--make-directories *bin* Run executable from an RPM package
rpm-ivh/usr/src/redhat/rpms/' arch '/package.rpm install a built-in package from a RPM source
Rpmbuild--rebuild package_name.src.rpm Build a RPM package from one RPM source
----------------------------------------------------------------------------------------------------------

========yum Package Upgrade-(Fedora, Redhat and similar systems)
Yum install package_name download and install a RPM package
Yum Localinstall package_name.rpm will install a RPM package and use your own software repository to resolve all dependencies for you
Yum Update package_name.rpm updates all installed RPM packages in the current system
Yum Update package_name updates a RPM package
Yum Remove package_name Delete an RPM package
Yum list lists all packages installed in the current system
Yum search package_name searching for packages in RPM repositories
Yum Clean Packages cleanup rpm cache to delete downloaded packages
Yum Clean headers Delete all header files
Yum Clean all deletes all cached packages and header files

========deb packages (Debian, Ubuntu and similar systems)
Dpkg-i package.deb Install/update a deb Package
Dpkg-r package_name Remove a deb package from the system
DPKG-L display all installed Deb packages in the system
Dpkg-l | grep httpd Displays all the Deb packages with the words "httpd" in their names
Dpkg-s Package_name get information on a special package already installed in the system
Dpkg-l Package_name displays a list of files provided by a Deb package that is already installed in the system
Dpkg--contents Package.deb shows a list of files provided by a package that has not yet been installed
Dpkg-s/bin/ping confirm which Deb package the given file is provided by

========APT software tools (Debian, Ubuntu and similar systems)
Apt-get install package_name Installing/updating a deb package
Apt-cdrom install package_name Installing/updating a Deb package from CD
Apt-get update packages in the upgrade list
Apt-get Upgrade upgrade all installed software
Apt-get Remove Package_name A deb package from the system
Apt-get Check to verify that the software repositories that are dependent are correct
Apt-get clean the cache from the downloaded package
Apt-cache Search Searched-package Returns the package name that contains the string you want to search

----------------------------------------------------------------------------------------------------------

View File Contents
Cat File1 Viewing the contents of a file starting from the first byte
TAC File1 To reverse view the contents of a file from the last line
More File1 View the contents of a long file
Less file1 is similar to the ' more ' command, but it allows a reverse operation in the same way as a forward operation in a file
Head-2 File1 View the first two lines of a file
Tail-2 File1 View the last two lines of a file
Tail-f/var/log/messages Real-time view of content that is added to a file

----------------------------------------------------------------------------------------------------------

Text Processing
Cat File1 file2 ... | Command <> File1_in.txt_or_file1_out.txt general syntax for text manipulation using PIPE, STDIN and STDOUT
Cat File1 | Command (SED, grep, awk, grep, etc ...) > Result.txt Merge the detailed description text of a file and write the introduction to a new file
Cat File1 | Command (SED, grep, awk, grep, etc ...) >> Result.txt Merge The detailed description text of a file and write the introduction to an existing file
grep aug/var/log/messages Find the keyword "/var/log/messages" in the file '
grep ^aug/var/log/messages in file '/var/log/messages ' to find words that begin with "."
grep [0-9]/var/log/messages selects all rows in the '/var/log/messages ' file that contain numbers
grep aug-r/var/log/* searches the directory '/var/log ' and subsequent directories for the string "the"
Sed ' s/stringa1/stringa2/g ' example.txt replace "string1" in Example.txt file with "string2"
Sed '/^$/d ' example.txt remove all blank lines from the Example.txt file
Sed '/*#/d; /^$/d ' Example.txt Remove all comments and blank lines from the Example.txt file
echo ' Esempio ' | TR ' [: Lower:] ' [: Upper:] ' merging upper and lower cell contents
Sed-e ' 1d ' result.txt excluding the first line from the file Example.txt
Sed-n '/stringa1/p ' view lines that contain only the word "string1"
Sed-e ' s/*$//' example.txt remove the last white space character from each line
Sed-e ' s/stringa1//g ' example.txt only removes the word "string1" from the document and retains all remaining
Sed-n ' 1,5p;5q ' example.txt view the contents from the first line to the 5th line
Sed-n ' 5p;5q ' example.txt view line 5th
Sed-e ' s/00*/0/g ' Example.txt replaces multiple zeros with a single 0
Cat-n file1 number of lines to mark a file
Cat Example.txt | awk ' nr%2==1 ' deletes all even lines in the Example.txt file
echo a b C | awk ' {print '} ' view one row of the first column
echo a b C | awk ' {print $1,$3} ' view the first and third columns of a row
Paste file1 file2 Merge two files or two columns of content
Paste-d ' + ' file1 file2 merge two files or two columns of content, in the middle with "+" distinction
Sort file1 file2 Sorting two contents of a file
Sort File1 File2 | Uniq Remove the set of two files (duplicate lines are retained only one copy)
Sort File1 File2 | Uniq-u Delete the intersection, leaving the other rows
Sort File1 File2 | Uniq-d Remove the intersection of two files (leaving only files that exist in two files)
Comm-1 file1 file2 Compare the contents of two files delete only what ' file1 ' contains
Comm-2 file1 file2 Compare the contents of two files delete only what ' file2 ' contains
comm-3 file1 file2 Compare the contents of two files delete only two files that are common to each other

----------------------------------------------------------------------------------------------------------

Character settings and file format conversions
Dos2unix filedos.txt fileunix.txt Convert the format of a text file from Msdos to Unix
Unix2dos fileunix.txt filedos.txt Convert the format of a text file from UNIX to Msdos
Recode. HTML < page.txt > page.html Convert a text file to HTML
Recode-l | More Show all allowable conversion formats

----------------------------------------------------------------------------------------------------------

File System Analysis
Badblocks-v/dev/hda1 Check for bad blocks on disk hda1
FSCK/DEV/HDA1 repairing/Checking the integrity of the Linux file system on the HDA1 disk
FSCK.EXT2/DEV/HDA1 repairing/Checking the integrity of the Ext2 file system on the HDA1 disk
E2FSCK/DEV/HDA1 repairing/Checking the integrity of the Ext2 file system on the HDA1 disk
E2fsck-j/dev/hda1 Repairing/checking the integrity of ext3 file systems on HDA1 disks
FSCK.EXT3/DEV/HDA1 repairing/Checking the integrity of the Ext3 file system on the HDA1 disk
FSCK.VFAT/DEV/HDA1 repairing/Checking the integrity of the FAT file system on the HDA1 disk
FSCK.MSDOS/DEV/HDA1 repairing/Checking the integrity of the DOS file system on the HDA1 disk
DOSFSCK/DEV/HDA1 repairing/Checking the integrity of the DOS file system on the HDA1 disk

----------------------------------------------------------------------------------------------------------

Initializing a file system

MKFS/DEV/HDA1 creating a file system in the HDA1 partition
MKE2FS/DEV/HDA1 creating a Linux ext2 file system in the HDA1 partition
Mke2fs-j/dev/hda1 Create a Linux ext3 (journaled) file system in the HDA1 partition
Mkfs-t vfat 32-f/dev/hda1 Create a FAT32 file system
Fdformat-n/dev/fd0 formatting a floppy disk
Mkswap/dev/hda3 creating a swap file system

----------------------------------------------------------------------------------------------------------

Swap file system

Mkswap/dev/hda3 creating a swap file system
Swapon/dev/hda3 enabling a new swap file system
SWAPON/DEV/HDA2/DEV/HDB3 enable two swap partitions

----------------------------------------------------------------------------------------------------------

Backup
Dump-0aj-f/tmp/home0.bak/home make a full backup of the '/home ' directory
Dump-1aj-f/tmp/home0.bak/home make an interactive backup of the '/home ' directory
Restore-if/tmp/home0.bak Restoring an interactive backup
Rsync-rogpav--delete/home/tmp sync on both sides of the directory
Rsync-rogpav-e ssh--delete/home ip_address:/tmp via SSH channel rsync
RSYNC-AZ-E SSH--delete ip_addr:/home/public/home/local synchronizes a remote directory to a local directory via SSH and compression
RSYNC-AZ-E ssh--delete/home/local ip_addr:/home/public synchronizing the local directory to the remote directory via SSH and compression
DD bs=1m If=/dev/hda | gzip | SSH [email protected]_addr ' dd of=hda.gz ' to perform a backup of the local disk on the remote host via SSH
DD IF=/DEV/SDA of=/tmp/file1 Backup disk contents to a file
Tar-puf Backup.tar/home/user performs an interactive backup operation on the '/home/user ' directory
(cd/tmp/local/&& tar C.) | ssh-c [email protected]_addr ' cd/home/share/&& tar x-p ' copy a directory content from the remote directory via SSH
(Tar c/home) | ssh-c [email protected]_addr ' cd/home/backup-home && tar x-p ' copy a local directory from the remote directory via SSH
Tar CF-. | (cd/tmp/backup; tar xf-) copy a directory locally to another location, preserving the original permissions and links
Find/home/user1-name ' *.txt ' | Xargs Cp-av--target-directory=/home/backup/--parents Find and copy all files ending with '. txt ' from a directory to another directory
Find/var/log-name ' *.log ' | Tar CV--files-from=-| bzip2 > log.tar.bz2 Find all files that end with '. Log ' and make a bzip package
DD If=/dev/hda of=/dev/fd0 bs=512 count=1 do an action to copy the contents of the MBR (Master Boot Record) to a floppy disk
DD if=/dev/fd0 of=/dev/hda bs=512 count=1 recover MBR content from a backup that has been saved to a floppy disk

----------------------------------------------------------------------------------------------------------

Disc
Cdrecord-v gracetime=2 Dev=/dev/cdrom-eject Blank=fast-force to clear a rewritable disc content
Mkisofs/dev/cdrom > Cd.iso Create a CD-ROM ISO image file on disk
Mkisofs/dev/cdrom | Gzip > Cd_iso.gz Create a compressed disc ISO image file on disk
Mkisofs-j-allow-leading-dots-r-V "Label CD"-iso-level 4-o./cd.iso data_cd Create an ISO image file for a directory
Cdrecord-v dev=/dev/cdrom Cd.iso Burning an ISO image file
GZIP-DC cd_iso.gz | Cdrecord Dev=/dev/cdrom-Burn a compressed ISO image file
Mount-o Loop Cd.iso/mnt/iso mount an ISO image file
Cd-paranoia-b from a CD to the audio track to the WAV file
Cd-paranoia--"-3" from a CD to the audio track to the WAV file (parameter-3)
Cdrecord--scanbus Scan bus to identify SCSI channels
DD IF=/DEV/HDC | md5sum Verifying the md5sum encoding of a device, such as a CD

----------------------------------------------------------------------------------------------------------

Network-(Ethernet and WiFi wireless)

Setup
Ifconfig eth0 shows the configuration of an Ethernet card
Ifup eth0 enable a ' eth0 ' network device
Ifdown eth0 Disable a ' eth0 ' network device
Ifconfig eth0 192.168.1.1 netmask 255.255.255.0 control IP Address
Ifconfig eth0 promisc set ' eth0 ' into promiscuous mode to sniff packets (sniffing)
Dhclient eth0 enable ' eth0 ' in DHCP mode
Route-n Show routing Table
Route add-net 0/0 GW ip_gateway Configura default Gateway
Route add-net 192.168.0.0 netmask 255.255.0.0 GW 192.168.1.1 Configure static route to reach network ' 192.168.0.0/16 '
Route del 0/0 GW ip_gateway remove static route

======== Managing Routing route
-N: Do not use a communication contract or host name, do not use direct IP IP IP or port number
b)-ee: Use more detailed information to display
c) Add (add) and delete (del) route related parameters

-net: Indicates that the following route is a domain;

-host: Indicates that the connection to a single-part host route is followed;

Netmask: Related to the domain, you can set the netmask to determine the size of the domain;

Gw:gateway shorthand, followed by IP IP value Oh, unlike Dev;

Dev: If you only want to specify that a network card is connected, then use this to connect eth0, etc.

----------------------------------------------------------------------------------------------------------

Disks, firewalls, boot-up, and so on, are not introduced here.


This article is from the "Come Together" blog, please be sure to keep this source http://daxionglaiba.blog.51cto.com/11790757/1795004

Linux Common Command collation

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.