版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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都昌县省属师范大学公费师范毕业生招聘20人考试备考试题及答案详解
- 2026年8月泸州懋威科技有限公司第四次社会公开招聘笔试模拟试题及答案详解
- 2026黑龙江哈尔滨依兰县人力资源和社会保障局招聘公益性岗位人员10人考试备考试题及答案详解
- 2026赣州市黄金实验小学招聘劳务派遣制顶岗教师考试备考题库及答案详解
- 2026跃进村街道办事处专职巡逻队员招聘5人考试备考试题及答案详解
- 2026句容市公开招聘公益性服务岗位工作人员3人考试备考题库及答案详解
- 杭州福斯特应用材料股份有限公司校园招聘考试备考试题及答案详解
- 2026四川省达州市“达人英才计划”上半年引才考生补检结论考试备考试题及答案详解
- 2026福建省鹭泽水务有限公司公开招聘2人考试备考题库及答案详解
- 2026年成都高新区公园小学面向社会公开招聘聘用教师(5人)考试参考题库及答案详解
- 2025年临床执业医师资格考试《第二单元》真题卷(含答案)
- 公司旅游安全
- 中国企业培训行业发展环境、市场运行格局及前景研究报告-智研咨询
- GB/T 44514-2024微机电系统(MEMS)技术层状MEMS材料界面黏附能四点弯曲试验方法
- 云南省保山市2024年小升初语文真题试卷及答案
- 五年级语文上册课文必背内容
- GB/T 15967-20241∶500 1∶1 000 1∶2 000地形图数字航空摄影测量测图规范
- HGT 4686-2014 液氨泄漏的处理处置方法
- (正式版)HGT 22820-2024 化工安全仪表系统工程设计规范
- 宠物用品研究报告-宠物用品项目商业计划书(2024年)
- 新学期从“心”开始-2023-2024学年热点主题班会课件
评论
0/150
提交评论