Show File System Hierarchy

Posted by 4Aiur on 04/06/2010 in BSD, Linux |

Show File System Hierarchy $ man hier Curious about differences between /bin, /usr/bin, and /usr/local/bin? What should be in the /sbin dir? Try this command to find out. Tested against Red Hat & OS X

Tags:

定制MacOSX ls颜色

Posted by 4Aiur on 04/06/2010 in BSD |

定制MacOSX ls颜色 习惯了linux的ls颜色,不适应MacOSX终端中的ls颜色修改了ls颜色使用的默认环境变量,跟linux有些接近了。 首先增加一个 aliasalias ll=’ls -lG’ 之后修改LSCOLORS环境变量 export LSCOLORS=ExGxCxDxCxEgEdAbAgAcAd LSCOLORS from man ls: LSCOLORS The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the fore- ground color and b is […]

Tags:

FreeBSD内存文件系统

Posted by 4Aiur on 04/06/2010 in BSD |

FreeBSD内存文件系统 [4aiur@FreeBSD ~/memeory_fs]$ sudo mount -t tmpfs -o size=1m tmpfs tmpfs/ [4aiur@FreeBSD ~/memeory_fs]$ sudo mdmfs -s 1m md mfs [4aiur@FreeBSD ~/memeory_fs]$ df -h tmpfs/ mfs/ Filesystem Size Used Avail Capacity Mounted on tmpfs 648M 4.0K 648M 0% /usr/home/4aiur/memeory_fs/tmpfs /dev/md5 846K 4.0K 776K 1% /usr/home/4aiur/memeory_fs/mfs

Tags:

安装好FreeBSD后的一些基础配置修改

Posted by 4Aiur on 04/06/2010 in BSD |

安装好FreeBSD后的一些基础配置修改 配置alias [root@FreeBSD ~]# alias alias cp=’cp -i’ alias grep=’grep –color’ alias ll=’ls -lG’ alias mv=’mv -i’ alias rm=’rm -i’ alias vi=’vim’ [root@FreeBSD ~]# 安装sudo [root@FreeBSD ~]# cd /usr/ports/security/sudo [root@FreeBSD /usr/ports/security/sudo]# make [root@FreeBSD /usr/ports/security/sudo]# make install [root@FreeBSD /usr/ports/security/sudo]# make clean 修改man的环境变量,使用less来查看手册 FreeBSD -P pager Specify which pager to use. By default, man uses “more -s”. […]

Tags:

FreeBSD重启网卡

Posted by 4Aiur on 04/06/2010 in BSD |

FreeBSD重启网卡 # 本地重启: ifconfig le0 down #stop网卡 ifconfig le0 up #start网卡 # 远程重启: /etc/netstart sh /etc/rc /etc/rc.d/netif restart # 重新获取dhcp地址: /sbin/dhclient interface

Tags:

Copyright © 2010-2024 4Aiur All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.