Ubuntu中which和whereis的区别

Ubuntu中which和whereis的区别

which和whereis是Linux系统中常用的命令,用于查找特定命令或文件的位置。在Ubuntu中,这两个命令的使用方法如下:

  1. which命令

which命令用于查找可执行文件在PATH路径中的位置。

示例:

which ls

输出:

/bin/ls

解释:

该命令查找ls命令的位置,并输出结果为/bin/ls。

  1. whereis命令

whereis命令用于查找指定文件的位置,包括二进制文件、源文件以及帮助文档等。

示例:

whereis ls

输出:

ls: /bin/ls /usr/share/man/man1/ls.1.gz

解释:

该命令查找ls命令的位置,并输出结果为/bin/ls和/usr/share/man/man1/ls.1.gz(帮助文档所在位置)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
Totally 2 parts. This is part-1 A tutorial suitable for beginners. Very detailed and specific. Beginning Ubuntu Linux is split into seven parts, each of which contains chapters about a certain aspect of Ubuntu use. These parts can be read in sequence, or you can dip in and out of them at will. Whenever a technical term is mentioned, a reference is made to the chapter where that term is explained. Part 1 examines at the history and philosophy behind the Linux operating system. I aim to answer many of the common questions about Linux. Such knowledge is considered to be as important, if not more so, than understanding the technical details on how Linux works. But while these chapters should be read sooner rather than later, they don’t contain any technical information that you absolutely require to get started with Ubuntu. Part 2 covers installing Ubuntu on your computer. An illustrated guide is provided, and all installation choices are explained in depth. Additionally, you’ll find a problem-solving chapter to help in case anything goes wrong. Part 3 focuses on getting started with Ubuntu. It covers setting up the Linux system so that it’s ready to use. One chapter is dedicated to setting up common hardware devices, such as printers and modems, and another explains how you can secure your system. Other chapters in this part explore the desktop, explaining what you need to know to begin using Ubuntu on a daily basis. In Part 4, we take a look at how the underlying technology behind Linux functions. You’ll be introduced to the command-line prompt and learn how the file system works. It’s in these chapters that you’ll really master controlling Linux! Part 5 covers multimedia functions built into Ubuntu, which let you watch movies and play back music. We also take a look at the image-editing software built into Ubuntu. Part 6 moves on to explain how typical office tasks can be accomplished under Ubuntu. We investigate OpenOffice.org, the complete office suite built into Ubuntu. After an introduction to OpenOffice.org, separate chapters explore its word processor, spreadsheet, database, and presentation package. You’ll also learn how to use Evolution, Ubuntu’s e-mail program, and how to run Microsoft Office under Ubuntu. Part 7 carries on from Part 4, taking an even more in-depth look at the underlying technology behind Ubuntu. This time, the emphasis is on giving you the skills you need to keep your system running smoothly. You’ll learn how to install software, manage users, optimize your system, back up essential data, schedule tasks, and access computers remotely. Finally, at the back of the book, you’ll find four appendixes. The first is a glossary of Linux terms used not only in this book, but also in the Linux and Unix world. The second appendix is a quick reference to commands typically used at the command-line prompt under Linux. The third appendix explains how to get further help when using Ubuntu. The final appendix briefly describes some other versions of Ubuntu that differ from the one accompanying this book.
Totally 2 parts. This is part-2 A tutorial suitable for beginners. Very detailed and specific. Beginning Ubuntu Linux is split into seven parts, each of which contains chapters about a certain aspect of Ubuntu use. These parts can be read in sequence, or you can dip in and out of them at will. Whenever a technical term is mentioned, a reference is made to the chapter where that term is explained. Part 1 examines at the history and philosophy behind the Linux operating system. I aim to answer many of the common questions about Linux. Such knowledge is considered to be as important, if not more so, than understanding the technical details on how Linux works. But while these chapters should be read sooner rather than later, they don’t contain any technical information that you absolutely require to get started with Ubuntu. Part 2 covers installing Ubuntu on your computer. An illustrated guide is provided, and all installation choices are explained in depth. Additionally, you’ll find a problem-solving chapter to help in case anything goes wrong. Part 3 focuses on getting started with Ubuntu. It covers setting up the Linux system so that it’s ready to use. One chapter is dedicated to setting up common hardware devices, such as printers and modems, and another explains how you can secure your system. Other chapters in this part explore the desktop, explaining what you need to know to begin using Ubuntu on a daily basis. In Part 4, we take a look at how the underlying technology behind Linux functions. You’ll be introduced to the command-line prompt and learn how the file system works. It’s in these chapters that you’ll really master controlling Linux! Part 5 covers multimedia functions built into Ubuntu, which let you watch movies and play back music. We also take a look at the image-editing software built into Ubuntu. Part 6 moves on to explain how typical office tasks can be accomplished under Ubuntu. We investigate OpenOffice.org, the complete office suite built into Ubuntu. After an introduction to OpenOffice.org, separate chapters explore its word processor, spreadsheet, database, and presentation package. You’ll also learn how to use Evolution, Ubuntu’s e-mail program, and how to run Microsoft Office under Ubuntu. Part 7 carries on from Part 4, taking an even more in-depth look at the underlying technology behind Ubuntu. This time, the emphasis is on giving you the skills you need to keep your system running smoothly. You’ll learn how to install software, manage users, optimize your system, back up essential data, schedule tasks, and access computers remotely. Finally, at the back of the book, you’ll find four appendixes. The first is a glossary of Linux terms used not only in this book, but also in the Linux and Unix world. The second appendix is a quick reference to commands typically used at the command-line prompt under Linux. The third appendix explains how to get further help when using Ubuntu. The final appendix briefly describes some other versions of Ubuntu that differ from the one accompanying this book.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

或许,这就是梦想吧!

如果对你有用,欢迎打赏。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值