用户空间命令与配置
来源:互联网 发布:淘宝访客很高转化率低 编辑:程序博客网 时间:2024/06/08 05:35
0. uname
uname -a 打印所有系统信息
uname -s 打印内核名称
uname -n 打印网络节点主机名
uname -r 打印内核发信版本号
uname –help 获得帮助信息
查看系统版本号的方法还有:
cat /proc/version
cat /etc/redhat-release
cat /etc/issue
1. 查看man 手册
10.安装 tftp
1
重启网络的命令:
Etc/init.d/network restart (注意etc/init.d/nfs….t等它是很多服务重启的路径)
2
修改ip地址的路径
Vi /etc/network/interface
3.
你先看看Linux的mount命令的用法。
和USB接口的移动硬盘一样对linux系统而言U盘也是当作SCSI设备对待的。使用方法和移动硬盘完全一样。插入U盘之前,应先用fdisk –l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。
[root at pldyrouter root]# fdisk -l
Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 4 32098+ de Dell Utility
/dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
/dev/sda3 2555 7904 42973875 83 Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
/dev/sda5 7905 8924 8193118+ 82 Linux swap
插入U盘后,再用fdisk –l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。
[root at pldyrouter root]# fdisk -l
Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinde
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 4 32098+ de Dell Utility
/dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
/dev/sda3 2555 7904 42973875 83 Linux
/dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
/dev/sda5 7905 8924 8193118+ 82 Linux swap
Disk /dev/sdd: 131 MB, 131072000 bytes
9 heads, 32 sectors/track, 888 cylinder
Units = cylinders of 288 * 512 = 147456 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 * 1 889 127983+ b Win95 FAT32
Partition 1 has different physical/logical endings:
phys=(1000, 8, 32) logical=(888, 7, 31)
系统多了一个SCSI硬盘/dev/sdd和一个磁盘分区/dev/sdd1,/dev/sdd1就是我们要挂接的U盘。
#mkdir -p /mnt/usb
注:建立一个目录用来作挂接点(mount point)
#mount -t vfat /dev/sdd1 /mnt/usb
回答注:现在可以通过/mnt/usb来访问U盘了,若汉字文件名显示为乱码或不显示,可以使用下面的命令。#mount -t vfat -o iocharset=cp936 /dev/sdd1 /mnt/usb
然后就可以拷贝文件:
cp source target 拷贝文件
cp -av source_dir target_dir 拷贝目录
- 用户空间命令与配置
- 配置命令如何从用户空间传递到driver
- 内核空间与用户空间
- 内核空间与用户空间
- 内核空间与用户空间
- 内核空间与用户空间
- 内核空间与用户空间
- 内核空间与用户空间
- 用户与表空间
- 关于内核空间与用户空间
- Linux用户空间与内核空间
- Linux用户空间与内核空间
- Linux用户空间与内核空间
- Linux用户空间与内核空间
- Linux用户空间与内核空间
- 有关内核空间与用户空间
- Linux用户空间与内核空间
- Linux用户空间与内核空间
- ExtJS MVC架构讲解
- ExtJS 4 布局和容器
- Mysql中Group by子句结合count使用的效率问题
- UIFont 自适应大小剧中对齐 设置字体 与字体效果预览
- 后补个2012年的总结吧
- 用户空间命令与配置
- ExtJS 4 类系统(Class System)介绍
- 关于String的一些小知识
- IPHONE开发打开系统设置项,打开定位服务,打开Wifi等功能
- Feature CTP Walkthrough: Code Only for the Entity Framework
- android-----JNI中的log打印
- linux进程调度浅析
- android---多Activity一次性退出
- Map以自定义类做为键值