linux 知识点 随笔
生活随笔
收集整理的這篇文章主要介紹了
linux 知识点 随笔
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2011/4/21
- ??如何查看系統內存的使用情況?今天百度實習二面,可是自己不爭氣沒把握住這次機會,估計已經掛了。linux正在學,但簡歷上寫成了精通,被面試的GG鄙視了一 通。要知恥而后勇,加油!在網上找到了答案,就是使用free -m命令。
? $ free -m
total used free shared buffers cachedMem: 1002 769 232 0 62 421
-/+ buffers/cache: 286 715
Swap: 1153 0 1153 其中,total指系統總內存;used指已使用內存,包括了作為buffers和cached的部分,即used=buffers+cached+(-buffers/cache); free指扣除已使用的內存;buffers和cached指用于inode和磁盤塊的緩沖大小; -buffers/cache指扣除緩存后被應用程序吃掉的內存,+buffers/cache指加上緩存能夠使用的內存大小
- 使用df可以查看當前掛載的文件系統的使用情況,如剩余容量、block大小、inode使用情況(df -i)
2011/4/22
- 使用dumpe2fs可以查看相應分區文件系統的情況,如superblock、各block group的 inodes、blocks情況。
- df/dumpe2fs/fdisk區別?
2011/5/5
- 未umount文件系統而進行fsck出現無法啟動
任何系統對于未卸載的文件系統進行fsck都會出現問題的,主要是因為當前cache中還有未寫入硬盤,未sync。解決辦法很簡單,只要umount 出錯的文件系統,然后進行手動ck就好了。fsck -y /sdaX
2011/6/50
1. "UNPROTECTED PRIVATE KEY FILE ssh key ubuntu" 今天putty突然連不上openssh了.試過很多方法都沒有搞好,重裝也不行。
后來才搞明白,原來之前把/root的權限改動了,而openssh需要/etc/ssh,~/.ssh/的權限不能過高。所以更改其權限即可。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0744 for '/home/geek/.ssh/id_rsa' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: /home/geek/.ssh/id_rsa To fix this, you'll need to reset the permissions back to default: sudo chmod 600 ~/.ssh/id_rsa sudo chmod 600 ~/.ssh/id_rsa.pub If you are getting another error: Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (/home/geek/.ssh/known_hosts). This means that the permissions on that file are also set incorrectly, and can be adjusted with this: sudo chmod 644 ~/.ssh/known_hosts Finally, you may need to adjust the directory permissions as well: sudo chmod 755 ~/.ssh This should get you back up and running. 轉自http://hi.baidu.com/goglad/blog/item/a8bc3d2a8f93c8345243c1ac.html
轉載于:https://www.cnblogs.com/xiaozhutc/archive/2011/04/21/2023673.html
總結
以上是生活随笔為你收集整理的linux 知识点 随笔的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Sql Server 监控 Job 执行
- 下一篇: linux 其他常用命令