Linux Cookbook 3
Files And Dirs
1. touch ---create a new, empty file
vi filename is also ok
2. mkdir ---make directory
mkdir -p ---to make all directories in the path
3. space in filename
use '' or "" or \
ls 'top secret'
ls "top secret"
ls top\ secret
4. cd ---change the current working dir
1)cd ---To make your home directory the current working directory
2)cd - ---Changing to the Last Directory You Visited
3)pwd ---Getting the Name of the Current Directory
5. ls ---Listing Directories
ls --color ---Listing Directories in Color
Some of the default color settings include displaying directory names in blue,
text files in white, executable files in green, and links in turquoise.
Many systems are set up to use this flag by default, so that using ls
&nbs
相关文档:
Service Discovery Protocol(SDP)提供一种能力,让应用程序有方法发现哪种服务可用以及这种服务的特性。
服务发现协议(SDP或Bluetooth SDP)在蓝牙协议栈中对蓝牙环境中的应用程序有特殊的含意,发现哪个服务是可用的和确定这些可用服务的特征。SDP定义了bluetooth client发现可用bluetooth server服务和它们的特征的方法。 ......
在linux vi中激活鼠标中键,实现滚动换行
转载自 http://www.cnblogs.com/starspace/archive/2009/05/15/1458050.html
先写个综述吧, 需要条件如下, 第一 vim的编译的时候打开了gpm_mouse支持, 第二 系统安装了gpm服务
-----------------------------------------
用以下命令打开鼠标:
:set mouse=a
否则 Vim ......
linux下获取本机IP地址
方法一:
local_host="`hostname --fqdn`"
local_ip=`host $local_host | awk '{print $NF}'`
方法二:
/sbin/ifconfig |grep -Eo '\baddr:[^ \t]+' |grep -Eo '[0-9\.]+' |head -n1
......
建立linux两用户之间的信任关系
转载自 http://www.cnblogs.com/starspace/archive/2008/10/30/1323235.html
有a和b两台机器,现要将a机器的user1用户添加到b机器的user2用户信任列表里,使a机器的user1用户可以直接ssh到b机器的user2用户
步骤:
1,进入a机器/home/user ......
linux下的ldd命令(转)
1、首先ldd不是一个可执行程序,而只是一个shell脚本
2、ldd能够显示可执行模块的dependency,其原理是通过设置一系列的环境变量,如下: LD_TRACE_LOADED_OBJECTS、LD_WARN、LD_BIND_NOW、LD_LIBRARY_VERSION、 LD_VERBOSE等。当LD_TRACE_LOADED_OBJECTS环境变量不为空时,任何可执行程序在运行时 ......