linux 命令积累
来源:互联网 发布:bt是什么软件 编辑:程序博客网 时间:2024/05/16 12:28
1。将iso目录mount为一个设备
mount -o loop /path/to/my.iso /media/usb
2。用mkisofs命令创建一个iso文件
mkisofs -o my_wj_iso.iso(随便取个iso名称,这个iso会在本目录中) -b isolinux.bin(这个文件在isolinux中,要cp到上一级目录) -c boot.cat(这个文件也在isolinux目录,
也要cp到上一级目录) -no-emul-boot -boot-load-size 4 -input-charset utf8 -boot-info-table /root/Desktop/myiso/(iso源文件目录)
新命令:
mkisofs -o ../wj-xubuntu-test.iso -D -r -V "$IMAGE_NAME" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -input-charset utf8 -boot-info-table ../livecd/
3。用grep命令查找对应的字符串
grep -irl "jay" ./ 在本目录查找带jay字符的文件路径及所在的文件
4。调整声音大小
alsamixer
5。shell替换文本中的字符串
sed -i -e 's/CN/US/' locale
将locale文件中带CN的字符串替换为US
6。qemu安装命令
./configure --enable-spice --enable-linux-aio --enable-uuid --enable-kvm-pit --enable-kvm --disable-werror --enable-debug --enable-usb-redir --target-list=x86_64-softmmu
(--enable-debug如果需要调试则需要加,默认路径是在/usr/local下,--target-list=x86_64-softmmu仅安装x86_64位平台的,我的系统是ubuntu-server amd64的,不加此参数默认安装会安装全部平台)
7。shell获取ip地址
ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $1}'
8。ubuntu设置地址栏
①.打开终端输入命令 gconf-editor
②找到apps节点
③找到apps节点下的nautilus节点
④在找到其下面的preferences
⑤选择右边的always_use_location_entry打上勾就OK了
ubuntu12.04 在终端上运行
gsettings set org.gnome.nautilus.preferences always-use-location-entry true
9。网络命令
netstate -ntlp 查看端口情况
lsof -i:8443 查看8443端口给哪个进程所占用
10。vi替换字符串
:%s/STTRI/KEQISOFT/g
把所有STTRI替换成KEQISOFT
11。取消linux系统待机(xubuntu)
export DISPLAY=:0.0
xset s 86400
xset -dpms
12。vmdk转换成qcow2
qemu-img convert -f vmdk -O qcow2 test.vmdk keqisoft.qcow2
13。查看系统是多少位的
getconf LONG_BIT
- Linux 命令积累
- linux 命令积累
- linux命令积累
- Linux命令--积累
- Linux 命令使用积累
- Linux 命令点滴积累
- linux命令积累
- linux 命令积累
- linux命令日常积累
- Linux 命令积累
- linux命令积累
- linux 命令积累
- Linux命令点滴积累
- linux基础命令积累
- linux 命令积累
- LINUX下 命令 积累
- linux 命令 积累
- Linux命令学习积累
- 使用WZC函数在WINDOWS CE下搜索连接WIFI的具体实现与源码
- 谷歌应用支持查看返回数据类型
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEM...
- 从零开始学习攻心术——被99%的人忽略的十个心理细节
- 用m2eclipse创建Maven项目时报错
- linux 命令积累
- Qt学习之路(50): QString
- W32/Pushbot-P Worm
- android不生成R文件
- Class.forName的使用
- 虚拟机redhat9开机不能进入图形界面解决办法
- 用 Java 实现断点续传 (HTTP)
- TokyoTyrant的管理工具tcrmgr使用小记
- 怎样才能充分利用SQL索引