欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > PPT文档下载  

    医学pptlinux常用commod.ppt

    • 资源ID:5712164       资源大小:6.51MB        全文页数:38页
    • 资源格式: PPT        下载积分:10金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要10金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    医学pptlinux常用commod.ppt

    Start To Play,Open Your VM(Of Cause!),First Step is?,Then,Wait,if we already have a server,You can use different toolsPuttyVNC,Putty,Normally,we can use this tool,VNC,How about we already have the desktop,can we use that?,Example:VNC Viewer,Easy way,Example:VNC Sever Configuration,But,before we can use this tool,we need to configure our server.,Installyuminstalltigervnc-serverStart and set password:vncserver:1 Configure:vim/etc/sysconfig/vncserversAdd a line VNCSERVERS=1:root“Restart the VNC serverservice vncserver restartIf we want the SVN server starts automaticallychkconfig vncserver on,Play With Linux,cd,ls Were already mentioned,Navigate,Normally,we have to use command line,I dont want to re-type the same word,Try to use history:history!lineNumCtrl+R,What if my command typing is wrong?,Command line editingIn this case,you need command line editingMovingCtrl-a Move cursor to the beginning of the line.Ctrl-e Move cursor to the end of the line.Ctrl-f Move cursor forward one character;same as the right arrow key.Ctrl-b Move cursor backward one character;same as the left arrow key.Alt-f Move cursor forward one word.Alt-b Move cursor backward one word.Ctrl-l Clear the screen and move the cursor to the top left corner.The clear command does the same thing.,Command line editingEditingCtrl-d Delete the character at the cursor locationCtrl-t Transpose(exchange)the character at the cursor location with the one preceding it.Alt-t Transpose the word at the cursor location with the one preceding it.Alt-l Convert the characters from the cursor location to the end of the word to lowercase.Alt-u Convert the characters from the cursor location to the end of the word to uppercase.,What if my command typing is wrong(Con.)?,Command line editingCut And PasteCtrl-k Kill text from the cursor location to the end of line.Ctrl-u Kill text from the cursor location to the beginning of the line.Alt-d Kill text from the cursor location to the end of the current word.Alt-Backspace Kill text from the cursor location to the beginning of the word.If the cursor is at the beginning of a word,kill the previous word.Ctrl-y Paste the text at the cursor location.,What if my command typing is wrong(Con.)?,Command:ls,cd sh startStore.sh,./startStore.sh,Execute command/script,Normally,it is the easiest part,But,some exceptions are also exist,Exceptions You May Meet,Env variables issueSet the required environment variablesFormat issuedos2unixCommand not foundInstall the required softwaresAccess rightsu,sudo,chown,chgrp,chmod,How To Install The Required Softwares(1),Almost all software for a Linux system can be found on the Internet.How will them be provided:Most of them are package filesRest of them are source code,How To Install The Required Softwares(2),Most distributions belong to one of two camps of packaging technologiesThe Debian“.deb”campDebian,Ubuntu,Xandros,LinspireThe Red Hat“.rpm”campFedora,CentOS,Red Hat Enterprise Linux,OpenSUSE,Mandriva,PCLinuxOS,How To Manage The Required Softwares On Debian,Through repository:apt-get install package_nameapt-get remove package_nameThrough package:dpkg-install package_fileapt-get remove package_name,How To Manage The Required Softwares On Red Hat,Through repository:yum install package_nameyum erase package_nameThrough package:rpm-i package_fileyum erase package_name,How To Install The Required Softwares From Source Code,Dowload:wgetftpUnpackedtar xzf diction-1.11.tar.gzBuild./configmake install,Got Errors?,Check log:VI,cat,lessPipeSearch,Now,I can execute the scripts,but I got errors after I execute them,VI Introduction,Start-vi filenameQuit-:q!/wqCommand mode VS Input modeInitially,Command modeFrom Command mode to Input mode-Type“i”From Input mode to Command mode Type“Esc”,Move Cursor In VI,numberGTo line number.For example,1G moves to the first line of the file.GTo the last line of the file.Ctrl-f or Page Down Down one page.Ctrl-b or Page Up Up one page.0(zero)To the beginning of the current line$To the end of the current line.,Basic Editing In VI,aEnter Input mode and move cursor beyond the current location of cursor.A Enter Input mode and move cursor beyond the end of the line.oEnter Input mode and open a line below the current line.OEnter Input mode and pen a line above the current line.,Deleting In VI,ddDelete the current line.5dd The current line and the next 4 lines.dG From the current line to the end of the file.d$From the cursor position to the end of the current line.d0 From the cursor position to the beginning of the current line.uUndo,Cutting,Copying And Pasting In VI,dThe d command will be used as both delete and cut.p/PTo copy the text after/before the cursor.yyCopy the current line.5yyCopy the current line and the next 4 lines.ySCopy from the current cursor to the end of line.y0Copy from the current cursor to the begin of the line.yG Copy from the current cursor to the end of the file.JContact the lines below to the current line.,Finding And Replacing In VI,fFind character in one line.Type semicolon to repeat./Find in the whole file.Type“n”to repeat.:%s/Line/line/gReplace.%is a shortcut meaning from the first line to the last line.Alternately,the range could have been specified 1,5.s Specifies the operation.In this case,substitution(search and replace)g means“global”,if omitted,only the first instance of the search string on each line is replaced,Common Search Methods,locateIt look up path in database.updatedb To update the database for locate.find Find files base on different conditions.,I/O Redirect,The result of commands:stdoutStatus and error messages:stderrThe default output is connect to screenThe inputs are from the standard input:stdinThe default input is connect to the keyboardI/O Redirect allows us to change the direction of outputs and inputs,STDOUT Redirect,Operator“”Examplesls-l/usr/bin ls-output.txt test.txt Empty the file or create a new file.echo“sh startStorefront.sh”startStore.sh3.Operator“”Append content instead of empty the content.,STDERR Redirect,A program can produce output on any of several numbered file streams.We have referred to the first three of these file streams as standard input,output and error,the shell references them internally as file descriptors zero,one and two,respectively.Examplels-l/bin/usr 2 ls-error.txtRedirect the second file stream which refers to the stderror to the file.,Get Together,ls-l/bin/usr ls-output.txt 2&1There are two redirect:Redirect output to ls-output.txtRedirect STDERR to STDOUTNewer way for this task:ls-l/bin/usr&ls-output.txtRedirect STDERR and STDOUT to the ls-output.txt through“&”,If we can output both STDOUT and STDERR into the same file,Exception,ls-l/bin/usr 2/dev/null/dev/nullThis file is a system device called a bit bucket which accepts input and does nothing with it.,If we write a script,and the there are too many log which we want to ignore,STDIN Redirect,catcat movie.mpeg.0*movie.mpegConcact filescat lazy_dog.txtCreate new file through the STDIN“”cat lazy_dog.txtRead content from file and output to screen,Pipelines,Operator“|”The standard output of one command can be piped into the standard input of another.ls-l/usr/bin|lessls/bin/usr/bin|sort|less,Eventually,The Reason Is,There is a process already running!ps ef|grep javatail f storefront.logkill-9 1234The disk is fulldf Hdu-sh*|sort-nr|headdu-sh*|sort-nr|less,Dont Play So Hard,Some times,you can use cron to help you to do the scheduled job.vi/etc/crontab00 18*root/usr/sbin/bakmysql sudo/etc/init.d/cron restart Dont type so much,use tab to auto complete the command.Make the long commands to short ones with alias.alias startStore=cd/home/atg-student&./startStore.shMake the long file paths to short paths through ln.ln-s/workspace/proj-src/server-scripts/startStore.bat/scripts/startStore.bat,Dont Play So Hard,Hey,let Linux to help you to do something!,http:/billie66.github.io/TLCL/index.html,References,

    注意事项

    本文(医学pptlinux常用commod.ppt)为本站会员(sccc)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开