Freeing Up Disk Space in Ubuntu騰出磁盤空間Ubuntu的
After using Ubuntu for some time, you might find that the disk begins to get full.在使用Ubuntu的一段時間,您可能會發現磁盤開始得到充分。 You can keep an eye on disk usage by using the following command in a terminal window:您可以密切關注磁盤的使用使用下列命令在一個終端窗口:
df -h東風小時
This will show the free space in terms of megabytes or gigabytes for each partition, also expressed as a percentage figure.這會顯示可用空間方面的MB或容量為每個分區,也以百分比表示的數字。 If the disk does start to get full, you can take steps to make more space available.如果磁盤並開始得到充分,你可以採取步驟,使更多的可用空間。
Emptying the /tmp Folder 清空/ tmp的文件夾
An easy way to regain disk space is to empty the /tmp folder.一種簡單的方法來恢復磁盤空間是空的/ tmp的文件夾。 Like its counterpart in the Windows operating system, this is the folder in which temporary data is stored.像其對應的Windows操作系統,這是文件夾中的臨時數據存儲。 Some applications clean up after themselves, but others don’t, leaving behind many megabytes of detritus.一些應用程序後,清理本身,而是別人不,留下許多兆的碎屑。
Because the /tmp folder is accessed practically every second the system is up and running, to empty it safely, it’s necessary to switch to run level 1.由於/ tmp的文件夾是幾乎每一個進入第二個系統的投入運行,它空安全,有必要切換到運行級別1 。 This ensures few other programs are running, and avoids the risk of deleting data that is in use.這可以確保其他一些正在運行的程序,避免了風險,刪除數據,在使用中。 First, switch to the text console by pressing Ctrl+Alt+F1.首先,切換到文本控制台按按Ctrl + Alt +車隊。 Then enter these commands to switch to run level 1:然後輸入這些命令切換到運行級別1 :
sudo killall gdm須藤killall妊娠糖尿病
sudo init 1須藤的init 1
A recovery menu will appear.復甦菜單將會出現。 Select the Drop to Root Shell Prompt option.選取下降到root用戶的命令提示符選項。 Then enter the following to empty the /tmp folder and reboot:然後輸入下列空的/ tmp的文件夾,重新啟動:
rm -rf /tmp/*紅泥射頻/ tmp的/ *
reboot重新啟動
On a similar theme, don’t forget to empty the desktop Trash.在一個類似的主題,不要忘記在桌面空的垃圾桶。 This can hold many megabytes of old data.這可以容納很多兆字節的舊數據。 If you see an error message about permissions when emptying the Trash, you can do so manually from a terminal window.如果你看到一個錯誤信息的權限時,清空垃圾桶,你可以這樣做手動從一個終端窗口。 Simply type sudo rm -rf ~/.Trash/* to get the job done.只需輸入須藤室射頻〜 / 。垃圾桶/ *才能完成任務。
Emptying the Cache of Package Files 清空高速緩存的包文件
You might also choose to clear out the Advanced Packaging Tool (APT) cache of old .deb package files.您也可以選擇明確了先進包裝工具(亞太)緩存歲。 deb軟件包文件。 On a system that has been very frequently updated, this can free many megabytes (possibly gigabytes) of space.系統上一直非常頻繁更新,這可以自由很多兆字節(可能是千兆字節)的空間。 You can empty the cache by typing the following command in a terminal window:您可以清空緩存鍵入以下命令在一個終端窗口:
sudo rm -f /var/cache/apt/archives/*.deb須藤室口是/ var /緩存/ apt / archives目錄/ *. deb文件
However, the apt-get clean and apt-get autoclean commands are considered a much safer way to remove unwanted package files.然而, apt - get的清潔和apt - get autoclean命令被視為一個更加安全的方式,消除不必要的一攬子文件。
If you want to restore any packages later on, simply locate them in the Synaptic Package Manager list, click the check box, and click Mark for Reinstallation.如果你想恢復任何軟件包後,只要找到他們中的突觸包管理器列表中,單擊複選框,然後單擊馬克的重新安裝。 This will cause the package to be downloaded, installed, and configured.這將導致包下載,安裝和配置。
Be careful to type the command to empty the APT cache exactly as it’s written.仔細地輸入命令,清空亞太緩存正是因為它的書面。 Even inserting an additional space can lead to very bad consequences!即使是插入一個額外的空間可能會導致非常糟糕的後果!
Removing Unused Software 刪除未使用的軟件
If you still need disk space, consider uninstalling unused programs.如果您仍需要的磁盤空間,未考慮卸載程序。 As you’ve learned, you can manage software through the Synaptic Package Manager (System -> Administration -> Synaptic Package Manager).正如您所了解,您可以通過管理軟件的突觸包管理器(系統-> “管理- >”新立得軟件包管理器) 。
To remove a package, click its check box and select Mark for Removal.要刪除一個軟件包,點擊複選框,並選擇馬克去除。 However, it’s not a good idea to simply scroll down the list and remove anything that seems dispensable.然而,這不是一個好主意,只是向下滾動列表並刪除任何東西,似乎可有可無。
Because of the way Linux works, many seemingly insignificant packages are actually vital to the running of the system.由於Linux操作系統的道路工程,許多看似微不足道的包實際上是至關重要的運行系統。 Instead, it’sa better idea to look for programs on the Applications menu, and then return to the Synaptic Package Manager to remove them by searching for their names.相反,這是一個更好的主意尋找程序中的應用菜單,然後返回到突觸包管理器,以消除他們的搜尋他們的名字。
As always, removing software can create dependency problems, so you might find yourself limited in what software you can actually remove.一如往常,刪除軟件可以創建的依賴問題,所以您可能會發現自己有限的軟件,您可以真正刪除。
If you want to remove all the desktop games, simply search for gnome-games and gnome-games-data in the Synaptic Package Manager, and mark them for removal.如果你想刪除所有的桌面遊戲,只要搜索桌面遊戲和桌面遊戲數據的突觸包管理器,並標記為刪除。
Source of Information : Apress Beginning Ubuntu Linux 信息來源: Apress開始Ubuntu Linux操作系統
Written by magakos. 撰稿magakos 。 Read more great feeds at is source 閱讀更多的是供稿源 WEBSITE 網站
no comments 沒有評論 . 。
Read more articles on 閱讀更多文章 Ubuntu Linux Ubuntu Linux操作系統 and 和 otherSoftware otherSoftware . 。
- [+] Digg [ + ] Digg的 : Feature this article :特徵本文
- [+] Del.icio.us [ + ] Del.icio.us : Bookmark this article : 06條
- [+] Furl [ + ]卷 : Bookmark this article : 06條















