UBUNTU one-sentence skills-getting started with Linux (for beginners)
Source: Internet
Author: User
One-sentence UBUNTU tips-getting started with Linux (for beginners)-General Linux technology-Linux technology and application information. For details, refer to the following section. View the installation content of software xxx
Dpkg-L xxx
--------------------------------------------------------------------------------
Automatic Processing of H files is missing during compilation
Sudo auto-apt run./configure
View the temporary directory for storing downloaded packages during software installation
Ls/var/cache/apt/archives
Back up the list of all packages installed in the current system
Dpkg -- get-selections | grep-v deinstall> ~ /Somefile
Restore all packages from the list file of the installation package backed up above
Dpkg -- set-selections <~ /Somefilesudo dselect
Clear old software caches
Sudo apt-get autoclean
Clear all software caches
Sudo apt-get clean
Delete isolated software that is no longer used by the System
How to modify the MAC address of a NIC
Sudo ifconfig eth0 down # disable the NIC
Sudo ifconfig eth0 hw ether 00: AA: BB: CC: DD: EE # change the address
Sudo ifconfig eth0 up # Start the NIC
--------------------------------------------------------------------------------
Add a service
Sudo update-rc.d service name defaults 99
Delete a service
Sudo update-rc.d service name remove
Temporarily restart a service
/Etc/init. d/service name restart
Temporarily close a service
/Etc/init. d/service name stop
Configure which Java is used by default
Sudo update-alternatives -- config java
Modify user information
Sudo chfn userid
Set proxy for apt
Export
Http_proxy = http://xx.xx.xx.xx: xxx
Modify system logon information
Sudo vim/etc/motd
Convert the file name from GBK to UTF8
Sudo apt-get install convmv
Convmv-r-f cp936-t utf8 -- notest -- nosmart *
Quickly search for a file
Whereis filename
Find directory-name file name
View File Types
File filename
Display the last six lines of xxx File
Tail-n 6 xxx
Http://softbbs.pconline.com.cn/topic.jsp? Tid = 7287850
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.