The basics of How to use Linux (如何使用Linux,基础笔记一)
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了The basics of How to use Linux (如何使用Linux,基础笔记一),小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1999字,纯文字阅读大概需要3分钟。
内容图文
The basics of How to use Linux (Note One)
Outline:
ls - list contents of the directory
file - check the file type
less - look through contents of the file
1. ls
“ls” is a common command used by people, and we can use it to see contents of the directory, directory’s attributes and important files.
1.1. List out all files and sub directories under the current dirctory:
1.2. List contents of a directory or multiple directories
1.3. Get more info by using arguements and options
A mojority of commands support to usre the options and arguments, and they adhere after the command.
e.g.
e.g. Get more detailed info of contents under the current directory
e.g. Get more more detailed info of contents under the current directory, and contents are listed by the modified time
e.g. Get more more detailed info of contents under the current directory, and contents are listed by the modified time then reverse the order.
The detailed introduction of “ls” 's options and arguments:
1.4. Long format of the file info
e.g.
1.4.1. The first char means the type of files:
Begin with “d” : directory
Begin with “-” : a normal file
1.4.2. The access permission:
e.g.
“rw-” owner permission: read, write and non-execute
“r–” group permission: only read
“r–” other permission: only read
1.4.3. The number of hard link:
e.g.
1.4.4. The name of file owner:
e.g.
1.4.5. The name of group users:
1.4.6. The size of a file (byte):
1.4.7. The last modification time:
1.4.8. The name of a file:
2. Check the file type (less)
The file" command can be used to check a file type and get other info. In the unix-like system, there is a saying that everything is file.
The usage:
e.g.
3. Using “less” to look through contents of a file “less” command is a program to look text files.
Tips:
3.1. The usage:
e.g.
if you want to exit the less program, you could click the keyboard with “q”.
3.2. Some function tips for less program
when you are using the less program, you can control the program by these commands.
tips:
内容总结
以上是互联网集市为您收集整理的The basics of How to use Linux (如何使用Linux,基础笔记一)全部内容,希望文章能够帮你解决The basics of How to use Linux (如何使用Linux,基础笔记一)所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。