1 We can mount the remote dir to local by nfs
server:
modify /etc/exports
{{{
/home/Andy 192.168.200.40(rw)
}}}
client
{{{
mount -t nfs 192.168.200.40:/home/Andy /mnt/nfs
}}}
Modify the UID, because the server and client passwd will look same uid
local
{{{
usrmod -u 504 Andy
}}}
Reference:
http://blog.csdn.net/ylyuanlu/article/details/6004818
http://linux.vbird.org/linux_server/0330nfs.php#What_NFS_perm
2011年8月3日 星期三
2011年7月14日 星期四
Compress and InCompress
tar
1. Compress a file using
{{{
tar -czv -f /tmp/454_2_6.tar.gz doc/*
}}}
2. Incompress
{{{
tar -xzf xxx.tar.gz
}}}
1. Compress a file using
{{{
tar -czv -f /tmp/454_2_6.tar.gz doc/*
}}}
2. Incompress
{{{
tar -xzf xxx.tar.gz
}}}
2011年6月20日 星期一
System execute
1. using `` symbol
2. using system function
Case 1: grep need the escape in search
{{{
#!/usr/bin/perl
use strict;
use warnings;
my $r = `grep "\\w" FGSH_TIR.gff.GOA.overlap.entries.Annotation_2`;
#my $r = `echo hello`;
print $r;
system ("cat FGSH_TIR.gff.GOA.overlap.entries.Annotation_2 | grep"."\'\\w\'"."> tt");
}}}
2. using system function
Case 1: grep need the escape in search
{{{
#!/usr/bin/perl
use strict;
use warnings;
my $r = `grep "\\w" FGSH_TIR.gff.GOA.overlap.entries.Annotation_2`;
#my $r = `echo hello`;
print $r;
system ("cat FGSH_TIR.gff.GOA.overlap.entries.Annotation_2 | grep"."\'\\w\'"."> tt");
}}}
2011年5月25日 星期三
Element article
1. http://www.uic.edu/depts/accc/software/unixgeneral/email101.html
2. vi http://vimregex.com/
http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml
3.
2. vi http://vimregex.com/
http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml
3.
2011年5月18日 星期三
Show Method and Member and enum
Show method
http://www.java2s.com/Code/Java/Reflection/ClassReflectionshowmethods.htm
#############################################################
show enum
Reference: http://download.oracle.com/javase/1,5.0/docs/guide/language/enums.html
for (Rank rank : Rank.values())
protoDeck.add(new Card(rank, suit))
http://www.java2s.com/Code/Java/Reflection/ClassReflectionshowmethods.htm
#############################################################
show enum
Reference: http://download.oracle.com/javase/1,5.0/docs/guide/language/enums.html
for (Rank rank : Rank.values())
protoDeck.add(new Card(rank, suit))
訂閱:
文章 (Atom)