版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Basic knowledge about Linux, 2007/05/20,Main content,Linux Architecture The General Command Vi Text Editor Input - Output redirection Others,Linux Architecture,What is linux How Linux Is Different Linux Distributions Linux Components How Linux Organizes Data,What is Linux,Linux is an operating syste
2、m Properly speaking, the name Linux applies to the Linux kernel Linux kernel not the entire operating system Red Hat Enterprise Linux is entire operating system,How Linux Is Different,Linux is a cross-platform operating system Linux is free more important and many Linux applications are distributed
3、in source form,Linux Distributions,Linux can be freely redistributed, you can obtain it in a variety of ways.,Linux architecture,Different level,Linux Components,The Linux directory tree,How Linux Organizes Data,Devices Filesystems Directories and Paths File Permissions,Devices,Linux receives data f
4、rom, sends data to, and stores data on devices,File systems,Directories and Paths,Home and working directories The directory tree Absolute and relative pathnames,Home and working directories,a special directory known as your home directory. each user has a distinct home directory /home The current d
5、irectoryor current working directory root user has a special home directory, /root.,The directory tree,Directories of a Linux system Unlike MS-DOS root directory, using a forward slash (/),Absolute and relative pathnames,absolute path beginning at the root directory /home/bill/school current directo
6、ry, as its starting point Bill/school, patrick/school three special directory names . cd ./bill/school . cd ./patrick/school cd ,File Permissions,Each directory and file has user, called owner Each user belongs to groups The user and the group can be changed later. Access permissions, also known as
7、modes,The options of chmod,u: user g: group o: other a: all r: read w: write (and delete) x: execute (and access directory) +: add permission -: take away permission,How to change file mode,chmod a+x web.xml,chmod 711 web.xml,The General Command,about directory about file about system maintenance,Co
8、mmand about dir,man ,$ man ls ls $ls a $ls l ls R ls la mkdir( make directory) rmdir (remove directory) cd (change directory) pwd(print working directory),Command about dir,rm(remove files or directories) $rm -i $rm rf cp(copy files and directories) mv (move files) clear (clear screen),Command about
9、 file,cat (concatenate) $ cat web.xml The command cat can be used to display the contents of a file on the screen. less $less web.xml The command less writes the contents of a file onto the screen a page at a time head first ten lines of a file to the screen Tail last ten lines of a file to the scre
10、en Touch change file timestamps More,Command about file,grep searches files for specified words or patterns Ps aux|grep resin wc (word count) Who|wc l Sort-sort lines of text files Sort web.xml File determine file type $file file /bin/ls Find-search for files in a directory hierarchy $ find / -name
11、web.xml,Command about file,chmod Changes the access mode of the specified files chmod -R mode files Chmod R 700 web.xml chown Changes the owner of the specified files chown -R userid files Chown R apache.apache httpd.conf tar Creates a tar file with the specified name tar -zcvf tar_file files tar -z
12、cvf tst.tar.gz tst.c tar zxvf tar_file,Command about system,adduser userid Passwd userid df -h Displays the amount of free disk space on each mounted file system du dir Displays the amount of disk space used by the current directory du -sh /root free Displays the amount of used and free system memor
13、y,Command about system,hostname name Displays (or sets) the name of the host rootsupport # hostname rootsupport # support kill process_id kill 9 34346 ps -aux reboot shutdown -h minutes who ifconfig,Vi Text Editor,The Vi editor has powerful features to aid programmers The Vi editor has two modes: co
14、mmand and insert. The command mode allows the entry of commands to manipulate text. The insert mode puts anything typed on the keyboard into the current file. Vi initially starts in command mode,How to open a file in Vi,vi filename (opens specified file) $ vi web.xml command mode i, a,o: Enter inser
15、t mode When you want to get out of the editor, switch to command mode (press Esc),How to exit editor,$wq Rtn to save the edited file and quit $q! Rtn to quit the editor without saving changes $w filename to save the edited file to new file filename $w Save the file without exiting ESC: from insert m
16、ode Enter command mode,Manual about vi,Manual about vi,Manual about vi,Manual about vi,Manual about vi,Manual about vi,Manual about vi,Input - Output redirection, Redirector Symbol Ls log Redirector Symbol Ps axu log null ls null,pipe,A pipe is a way to connect the output of one program to the input
17、 of another program without any temporary file.,pipe,Others,How to kill an process How to find a software package how to start a service How to install jdk in Linux how to use scm tool-subversion,How to kill an process,rootsupport conf# ps axu|grep mysqld rootsupport conf#kil 9 2288,How to find a so
18、ftware package,rootsupport conf# rpm -qa|grep mysql mysql-devel-4.1.7-4.RHEL4.1 mysql-4.1.7-4.RHEL4.1 mysqlclient10-devel-3.23.58-4.RHEL4.1 mod_auth_mysql-2.6.1-2.1,how to start a service,rootcas # /etc/init.d/httpd status httpd (pid 20724 19338 17268 16719 447 445 443 441 439 437 387 383 381 31031 29882 29722 24461) 正在运行. rootcas # /etc/
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年广东省深圳市宝安区中考英语二模试卷
- 人教A版(2019)高中数学必修二第二讲-空间中点线面位置关系专题 讲义
- 2025年通信工程师(中级)职业水平考试真题解析及答案
- 2025年度四川省公安厅公开遴选公务员(164人)备考考试试题及答案
- 2025年通信专业技术人员职业水平考试《综合能力》中级试题与答案
- 2025年全国广播电视播音员主持人资格考试(广播电视基础知识)自测试题及答案
- 防静电设施检测报告
- 2026年宁夏政府采购代理机构从业人员考试仿真试题及答案
- 通化市广播电视编辑记者资格考试(广播电视业务)能力提高训练试题库 (2025年)
- 2026年小学“牢记党的教导 争做强国少年”六一国际儿童节庆祝活动方案二
- 优生优育学课件
- 2025年军队文职人员(会计岗)历年考试真题(附答案)
- 室温下湿气快速固化聚硅氮烷的制备及其涂层性能研究
- 儿科医生沟通技巧礼仪
- 2025年蚌埠辅警招聘考试真题及一套完整答案详解
- 能源法律法规标准课件
- 机械租赁居间合同范本
- 压裂返排液处理培训课件
- 维修沟通技巧培训课件
- 特种设备作业人员考试(场(厂)内专用机动车辆作业叉车司机N1)题库及答案(安徽省滁州市2025年)
- 物料分类说明及编码提报指南
评论
0/150
提交评论