Ubuntu9.1 Common commands

Source: Internet
Author: User

1) Switch CD/home/sxl513 to your home directory

2) ls/home/sxl513/desktop to view the contents of the Directory

3) sudo chmod 755-r/var/ftp

4) sudo gnome-Open/var/FTP/open the FTP folder

5) sudo gedit/etc/APT/sources. List use NotePad to open the sources. list file.

6) CD .. return to the upper-level directory

7) sudo apt-Get Update update source

8) sudo./*. Run install *. Run File

9) sudo apt-Get remove * uninstall the file *

10) sudo apt-Get install * online installation package

11) create a nested folder in sudo mkdir-P/usr/lib/Win32

12) sudo touch test creates a text file in the current directory.

13) sudo apt-Get install-F handle the dependency between errors

14) sudo dpkg-configure-A handles error: dpkg was interrupted

15) sudo apt-Get clean clears the cache installed online

16) sudo dpkg-s virtualbox query the installed virtualbox package

17) sudo apt-Get autoremove virtualbox-2.2 remove installed virtualbox packages

18) uname-A can use this command to view the Kernel used by the current system.

 

19) dpkg-get-selections | grep Linux # list the current kernel. The kernel with image is installed. You can run the following command to uninstall the kernel:

 

20) sudo apt-Get remove linux-image-2.6.24-11-generic # Where the linux-image-2.6.24-11-generic is the version number, complete.

21) force unlock, command

 

Sudo RM/var/Cache/APT/archives/lock

 

Sudo RM/var/lib/dpkg/lock

22)/var/Cache/APT/archives # store the path of the software package downloaded during online Installation

23) sudo apt-Get install RAR unrar # Install rar-format compression and decompression tools

24) apt-Get autoremove. The following software packages are automatically installed and are no longer in use:

 

Scim-modules-socket scim libscim8c2a scim-gtk2-immodule scim-bridge-Agent libqt3-mt

 

Use 'apt-Get autoremove 'to delete them.

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.