Alibabacloud.com offers a wide variety of articles about debian linux commands pdf, easily find your debian linux commands pdf information here online.
77 Common Linux commands and toolsLinux administrators cannot eat with GUI graphical interfaces alone. That's why we're editing this most useful Linux command manual. This guide is specifically designed for Linux administrators and system administrators, and brings together some of the most useful tools for their daily
From the Internet, these three commonly used commands may have many duplicates and have time to sort them out. However, in this case, it is better to strengthen the memory.
Apt-get:The software package management program of the Debian system (its graphic front-end is a new place with great names) will automatically help you deal with dependenciesCommon parameters:Update -- Update the package list with your
The birth of Unix, January 1, 1970User--------> Kernel-------"HardwareThe name/version of the release is determined by the issuer–red Hat Enterprise Linux 5/6/7–suse Linux Enterprise 12–debian Linux 7.8–ubuntu Linux 14.10/15.04is a complete
Backup files
Tar-cf/home/app20140703bak.tar/home/app/uat/test.war
Copy files to target directoryExamples are as follows:cp-af/app/wasapp/appname_uat.ear/appname.war/*/app/wasapp/appname_rn_war.ear/appname_rn.warCommand specific explanation:Cp-ai directory where source files are located+ + at the same time. Running the command assumes that you have a file with the same name that prompts for overwrite, which is a good idea if you want to mark it, and of course, assuming you don't want the
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 installation package, first upload tree.deb to the Linux system. Then install it using the command below.sudo dpkg-i tree_1.5.3-1_i386.deb installation softwaresudo dpkg-r tree Uninstall softwareNote: Th
decompress, just replace the above command TAR-CVF/TAR-ZCVF/TAR-JCVF "C" in the "X".Shut down/Restart the machineShutdown-R shutdown Restart-H shutdown does not restartNow turn the machine off.Halt shut down the machineReboot restartLinux PipelinesUse the standard output of one command as the standard input for another command. That is, the combination of several commands to use, the latter command in addition to the results of a previous command.Exa
decompress, just replace the above command TAR-CVF/TAR-ZCVF/TAR-JCVF "C" in the "X".Shut down/Restart the machineShutdown-R shutdown Restart-H shutdown does not restartNow turn the machine off.Halt shut down the machineReboot restartLinux PipelinesUse the standard output of one command as the standard input for another command. That is, the combination of several commands to use, the latter command in addition to the results of a previous command.Exa
APT-GET for common Linux commands
What is
apt-get
Advanced Packaging Tools (APT) is the software package manager for Debian and its derivative releases (such as Ubuntu. APT can automatically download, configure, and install software packages in binary or source code format, which simplifies the process of managing software on Unix systems. apt-get
1. View CPU Information: Cat/proc/cpuinfo2. View card information: CAT/PROC/PCI3. View USB Device: Cat/proc/bus/usb/devices4. View PCI information: LSPCI (more intuitive than CAT/PROC/PCI)5. View memory Information: Cat/proc/meminfo6. View keyboard and mouse: Cat/proc/bus/input/devices7. View system hard disk information and usage: Fdisk disk–l DF8, detecting new hardware with hardware detection program Kuduz: Service kudzu start (or restart)9. View Interrupt Request (IRQ) for each device: cat
/HOME/ABC packaged and compressed with bzip2Of course, if you want to decompress, just replace the above command TAR-CVF/TAR-ZCVF/TAR-JCVF "C" in the "X".Shut down/Restart the machineShutdown-R shutdown Restart-H shutdown does not restartNow turn the machine off.Halt shut down the machineReboot restartLinux PipelinesUse the standard output of one command as the standard input for another command. That is, the combination of several commands to use, th
In Linux, to enable/disable the MySql Server command, you must enable/disable/restart the MySql Server. First, log on to the root account, or add the sudo prefix before the command. If you are using RedHat/Fedora, you can use these commands to enable:/etc/init. d/mysqld start close:/etc/init. d/mysqld stop restart:/etc/init. d/mysqld restart www.2cto.com if you are using
Sometimes people give you a way to login, but do not know what the system, look at the picture will know1, uname-a view computer and operating system2. Cat/proc/version running kernel version3. Cat/etc/issue Release Information4, Lsb_release-a (for all Linux, including Redhat, SuSE, Debian and other distributions, but to install LSB under Debian)5, to you familia
cursor before theCtrl+u: Delete text entered under input modeF. Search and Replace commands/pattern: Searches for pattern at the end of the file from the beginning of the cursor? pattern: Searches for pattern from the beginning of the cursor to the top of the fileN: Repeat the last search command in the same directionN: Repeats the last search command in the opposite direction: s/p1/p2/g: Replaces all P1 in the current row with P2: n1,n2s/p1/p2/g: Al
25 SSH commands that must be remembered in Linux
1. Copy the SSH key to the target host and enable password-less SSH login.
ssh-copy-iduser@host
If no key exists, use the ssh-keygen command to generate it.
2. Open a tunnel from port 80 of a host to port 2001 of the local host
ssh-N-L2001:localhost:80somemachine
Now you can enter http: // localhost: 2001 in your browser to access this website.
3. Output your
not restart now shutdown halt shutdown reboot restartGedit. BASHRC Open User environment variable (note: User environment variable)Vim uses VIM in three modes: Command mode, insert mode, edit mode, use ESC or I or: to toggle mode. Command mode: : Q exit : q! Force exit: Wq Save and exit : Set number Displays line numbers : set Nonumber hidden line
ln-S/usr/bin/gcc-4.3 gcc
5. Both env and export display the current environment variable.
6. display the current shell environment variable
Echo $ shell if the output result is/usr/local/bin/bash, write "#! /Usr/local/bin/bash ", which means the sh file uses the shell environment variable of the system. Note: 1> The. Sh file only calls the first line of shell environment variables when it is set to an executable file and executed directly. Step: chmod + x. sh. sh 2>. if you use the source comma
information to be displayed directly in the terminal but in a log file, you can use the following command:
Wget-o Download.log URL
13, use wget-q limit the total download file sizeWhen you want to download more than 5M files and exit the download, you can use the following command:
Wget-q5m-i filelist.txt
Note: This parameter does not work for a single file download and is only valid for recursive downloads.14. Use Wget-r-A to download the specified format fileYou ca
1. Command prompt user@ubuntu-hansee:~/test$ global variable PS1 ps2 echo $PS 1: \[\e]0;\[emailprotected]\h: \ w\a\]${debian_chroot:+ ($debian _chroot)}\[emailprotected]\h:\w\$ echo $PS 2: > A few basic hints meaning: \u: User \h: local hostname \w: Current working directory name \T:24 hour time \t:12 hour system Modify the command prompt for the current terminal Direct assignment: ps1= "[\t][\u]$" Modified effect--[09:46:09][user]$
Man: Any time you think you're not sure about a command line, you can find out exactly what this command can do by entering "man + command". LS: Lists the contents of the directory. PWD: Displays the full path of the current working directory in the terminal. CD: To change the directory where you are currently located. mkdir: Create a new directory. CP: Copy File/rename file. MV: Move files. Find and locate: Search for files. Kill: Quickly close a process. passwd: Change Password. -9 indicates t
1. Temporary modification$hostname NewhostnameAfter the reboot, it's back to the original.2. Permanent modificationFirst step: sudo vi/etc/hostnameThen modify the Hosts file, the final input: sudo vi/etc/hosts find 127.0.1.1. It will take effect at this time.In this line, change the old hostname on the right side to your new host name. Restart Networksudo/etc/init.d/networking restartDolly MixRebootRestart the computer to take effectThe Nano command under LinuxUnable to locate package error reso
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.