linux常用commod培训讲学

上传人:yuzo****123 文档编号:141461083 上传时间:2020-08-08 格式:PPT 页数:38 大小:1.15MB
返回 下载 相关 举报
linux常用commod培训讲学_第1页
第1页 / 共38页
linux常用commod培训讲学_第2页
第2页 / 共38页
linux常用commod培训讲学_第3页
第3页 / 共38页
linux常用commod培训讲学_第4页
第4页 / 共38页
linux常用commod培训讲学_第5页
第5页 / 共38页
点击查看更多>>
资源描述

《linux常用commod培训讲学》由会员分享,可在线阅读,更多相关《linux常用commod培训讲学(38页珍藏版)》请在金锄头文库上搜索。

1、Start To Play ,Open Your VM (Of Cause!),First Step is?,Then,Wait, if we already have a server,You can use different tools Putty VNC,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

2、configure our server.,Install yuminstalltigervnc-server Start and set password: vncserver:1 Configure: vim/etc/sysconfig/vncservers Add a line VNCSERVERS=1:root“ Restart the VNC server service vncserver restart If we want the SVN server starts automatically chkconfig vncserver on,Play With Linux ,cd

3、, 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 !lineNum Ctrl + R,What if my command typing is wrong ?,Command line editing In this case, you need command line editing Moving Ctrl-a Move cursor to the beginni

4、ng 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 an

5、d move the cursor to the top left corner. The clear command does the same thing.,Command line editing Editing Ctrl-d Delete the character at the cursor location Ctrl-t Transpose(exchange)the character at the cursor location with the one preceding it. Alt-t Transpose the word at the cursor location w

6、ith 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 editing Cut And Paste Ctrl-k Kill t

7、ext 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 beg

8、inning 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

9、,Env variables issue Set the required environment variables Format issue dos2unix Command not found Install the required softwares Access right su, 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 b

10、e provided: Most of them are package files Rest of them are source code,How To Install The Required Softwares (2),Most distributions belong to one of two camps of packaging technologies The Debian “.deb” camp Debian, Ubuntu, Xandros, Linspire The Red Hat “.rpm” camp Fedora, CentOS, Red Hat Enterpris

11、e Linux, OpenSUSE, Mandriva, PCLinuxOS,How To Manage The Required Softwares On Debian,Through repository: apt-get install package_name apt-get remove package_name Through package: dpkg -install package_file apt-get remove package_name,How To Manage The Required Softwares On Red Hat,Through repositor

12、y: yum install package_name yum erase package_name Through package: rpm -i package_file yum erase package_name,How To Install The Required Softwares From Source Code,Dowload: wget ftp Unpacked tar xzf diction-1.11.tar.gz Build ./config make install,Got Errors ?,Check log: VI, cat, less Pipe Search,N

13、ow, I can execute the scripts, but I got errors after I execute them,VI Introduction,Start - vi filename Quit - :q! / wq Command mode VS Input mode Initially, Command mode From Command mode to Input mode - Type “i” From Input mode to Command mode Type “Esc”,Move Cursor In VI,numberGTo line number. F

14、or 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

15、 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 cur

16、rent 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

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 教学课件 > 高中课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号