备份Unix\Eclipse等常用命令

 

 

   Sample: 
 rmremove files(remove directory -rf)rm -rf tset 
 mkdirmake directorymkdir test 
 chmodchange modechmod 755 *.ksh 
 mvmove filemv lujinan.txt test/ 
 mvrename filemv lujinan.txt lujinan.txt.858 
 grepsearch file contextgrep 'for' ./* 
 sedtext process  
 >redirect output &clear file contentecho "abc" > test.txt & >filename 
 >>appendecho "abc" >> test.txt 
 catcheck the file contentscat test.ksh 
 lessper lineless test.ksh 
 moreper screenmore test.ksh 
 <redirect input  
 awk ls -l|awk '{print $1}' 
  cpcopy filecp /home/userId/a.txt b.txt 
 scpcopy file from other server to current serverscp $userId@otherServerName:/home/userId/a.txt /home/userId/b.txt 
     
 control + insertCOPY  
 shift + insertPASTE  
 control + cstop the running shell  
 ~$HOME  
 .current directory  
 /root  
 touchcreate 'dstamp" file and create time is May 4 21:40touch -t 05042140 dstamp 
 findfind directory and filesLINUX_and_UNIX_SHELL_program->002.pdffind pnl*
   find . -name fileName* -exec ls -ltr {} \; 
 tail tail -f fileName 动态输出文件尾部内容 
 diffccompare 
  aafter > 
  dbefore < 
 wccount the file lines 
processpsuse ps to see the processes that you are running  
bguse ctrl-Z to suspend the foreground task, and then use bg. 
fguse fg to move a background task to foreground   
killkill [-<signal>] <pid>kill -9 <pid> 强制杀死进程 
killallkillall [-<signal>] <command>  
 Commands that tell you who you are:  
 whoamidisplays your username  
 iddisplays your username and groups  
 Commands that tell you who others are:  
 finger [<name>]displays info for <name>   
 id [<username>]displays info for <username>   
 Commands that change who you are:  
 su <username>“switch user” to <username>   
     
 df (disk free)display the amount of available disk space for filesystems   
     
 loginlogin as a different user  
 To view a single environment variable’s value:  
  echo $<name >   
 For example:   
  echo $HOME  
 To view all environment variables at once:   
  sh/ksh: set    
 tcsh/csh:    
  setenv < name > <value>   
  Example: setenv AA aa   
 bash/ksh:    
  export < name >=<value>   
 There is no space on either side of ‘=’!   
  Example: export AA=aa   
 sh:    
  < name >=< value >; export < name >   
 Aliases   
 Syntax:    
 bash/ksh:   
 alias <text >=’< replacement >’   
 tcsh/csh   
 alias <text > ’< replacement >’   
     
EclipseCtrl+ HFile content search  
 Ctrl+ spacesysout->System.out.println();  
 Ctil+Shift+fformat codes  
 Ctil+Shift+tfind the jar package  
     
     
     
 ls -t1|head -n 1find the best new filels pnl.* 
     
 ksh: diff_nameWithJob.ksh: No such file or directoryneed to convert to Unix format  
 number=`expr $number + 1`calculate number  
    
     
     
    
     
     
Flex&Eclipse   
 Ctrl+Shift+c/*  */ comment code  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值