#useradd命令:建立用户帐号和创建用户的起始目录,使用权限是超级用户[root@VM_168_102_centos~]#useraddtest
[root@VM_168_102_centos~]#idtest
uid=502(test)gid=502(test)groups=502(test)
[root@VM_168_102_centos~]#tail-n1/etc/passwd
test:x:502:502::/home/test:/bin/..
分类:
系统相关 时间:
2014-08-13 15:23:07
阅读次数:
534
wewilluseELRepotoinstallkernel1.rpm--importhttps://www.elrepo.org/RPM-GPG-KEY-elrepo.org2.rpm-Uvhhttp://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm3.yum--enablerepo=elrepo-kernel-yinstallkernel-lt
4.vi/etc/grub.conf5.reboot
分类:
其他好文 时间:
2014-08-13 15:15:57
阅读次数:
219
无法上网问题:sudo subl /etc/network/interfaces增加以下内容:# The primary network interfaceauto eth0iface eth0 inet dhcp无法使用USB问题:sudo /usr/sbin/usermod -G vboxuse...
分类:
系统相关 时间:
2014-08-13 00:54:14
阅读次数:
243
1、Activity启动流程 Android操作系统 --> 读取配置文件AndroidMainfest.xml(得知启用哪个Activity)--> 生成MainActivity对象(名字可自定义)--> 调取该Activity的onCreate()方法 --> 在该方法会读取布局文件,决定该A....
分类:
移动开发 时间:
2014-08-12 21:59:54
阅读次数:
286
1:打开虚拟机,点‘启动’按钮,2:出现上面这个界面时,键盘输入’i’,出现grub界面:3:键盘输入e,出现如下界面:4:选择第二行(kernel……)5:键盘输入e,出现如下界面:6:在rhgbquiet后加上空格和数字1或者空格和single后回车。这里以加空格和数字1为例:然后,系统自动回到...
分类:
系统相关 时间:
2014-08-12 16:35:44
阅读次数:
246
#文件名通配通配符:*:匹配任意长度的任意字符(0到多个)[root@VM_168_102_centos~]#ls*
0812080808
2014-05-16:
test.log
ceshi_1:
test:
[root@VM_168_102_centos~]#ls-ldt*
drwxr-xr-x2rootwanghan4096Aug1115:46test
?:匹配任意单个字符
[root@VM_168_102_cento..
分类:
系统相关 时间:
2014-08-12 13:52:34
阅读次数:
385
20.1 Linux启动流程分析Linux启动过程:按下开机电源后计算机硬件主动读取BIOS来加载硬件信息以及硬件系统的自我测试,之后系统会主动读取第一个可启动的设备(由BIOS设置),此时就可以读入引导加载程序(boot loader)了,引导加载程序指定使用那个内核文件来启动,并实际加载内核到内...
分类:
系统相关 时间:
2014-08-11 20:46:22
阅读次数:
462
#stat命令:查看文件信息[root@VM_168_102_centos~]#stattest.log
File:`test.log‘
Size:0Blocks:0IOBlock:4096regularemptyfile
Device:ca01h/51713dInode:483339Links:1
Access:(0644/-rw-r--r--)Uid:(0/root)Gid:(500/wanghan)
Access:2014-08-1114:27:24.000000000+0800
Mo..
分类:
系统相关 时间:
2014-08-11 18:15:14
阅读次数:
527
ncurses是字符终端下屏幕控制的基本库,在编译grub时出现如下错误:
/usr/bin/ld:can not find -lncurses
collect2: ld returned 1 exit status
.
首先安装ncurses。
Fedora:
yum install ncurses-devel
Ubantu:
apt-get install libncu...
分类:
其他好文 时间:
2014-08-11 17:48:02
阅读次数:
158
Ext4 文件系统提供了更佳的性能和可靠性,具有了更为丰富的功能,那么,怎样从ext3升级到ext4呢?首先,我们须要保证系统支持ext4,一般来说,内核版本号在2.6.28及以上的版本号才支持ext4其次,假设/boot分区眼下是ext3,那么最好保留,由于如今系统上的 grub 非常可能不支持 ...
分类:
其他好文 时间:
2014-08-11 14:29:12
阅读次数:
300