In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the use of Linux desktop tips, which have a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian with you to understand.
Create Cdrom ISO images and monitor users in Linux
In this article, we will see how to create an ISO image using a disc loaded in a CD/DVD drive; open a random man page to learn; see the details of the logged-in user and view the browser memory usage, all using native tools / commands without the need for any third-party applications / components. Let's get started.
First, create an ISO image with CD disc
We often need to back up / copy the contents of CD/DVD. If you are on the Linux platform, you don't need any additional software. All you need is access to the Linux terminal.
To create an ISO image from CD/DVD, you need to do two things. The only thing to do is to find the name of the CD/DVD drive. To find the name of the CD/DVD drive, you can use the following three methods.
1. Run the lsblk command from the terminal / console (list block devices)
$lsblk
Find a piece of equipment
As you can see from the image above, sr0 is your cdrom (i.e. / dev/sr0).
two。 To view information about CD-ROM, you can use the following command
$less / proc/sys/dev/cdrom/info
Check Cdrom information
As you can see from the figure above, the device name is sr0 (that is, / dev/sr0).
3. Use the dmesg command to get the same information, and use egrep to customize the output.
The output of the command 'dmesg' command / controls kernel buffer information. The 'egrep' command outputs the line to which it matches. Egrep ignores case and highlights matching strings when using the options-I and-color.
$dmesg | egrep-I-- color 'cdrom | dvd | cd/rw | writer'
Find device information
As you can see from the figure above, the device name is sr0 (that is, / dev/sr0).
Once you know the name of CD/DVD, you can use the following command on Linux to create an ISO image (you see, just cat!).
$cat / dev/sr0 > / path/to/output/folder/iso_name.iso
The 'sr0'' here is the name of my CD/DVD drive. You should use your CD/DVD name instead. This will help you create ISO images and back up the contents of CD/DVD without any third-party applications.
Create an ISO image of CDROM
Open a man page at random
If you are new to Linux and want to learn to use command line switches, this technique is for you. Add the following line of code to the end of the ~ / .bashrc file.
/ use/bin/man $(ls / bin | shuf | head-1)
Remember to add the above line of script to the user's .bashrc file instead of the root .bashrc file. So the next time you log in to use SSH locally or remotely, you will see a manual page that opens randomly for you to read. This has proved to be beneficial for beginners who want to learn command line switches.
The following is seen in two logins at the terminal.
LoadKeys man pages
Zgrep man pages
I hope you know how to exit the man page-if you're tired of seeing the man page every time, you can delete the lines you added to the .bashrc file.
Check the status of logged-in users
Learn what other users are doing on the shared server.
In general, you are a user or administrator of a shared Linux server. If you are worried about the security of your server and want to see which users are doing what, you can use the command w.
This command lets you know if someone is executing malicious code or tampering with the server to stop or use other methods.' W` is a way to view the status of logged-in users.
To see what the logged-in user is doing, run the command "w" from the terminal, * is the root user.
# w
Check the status of Linux users
4. Check the memory usage of the browser
Recently there has been a lot of talk about Google-chrome memory usage. To check your browser's memory usage, simply enter "about:memory" in the address bar without quotation marks.
I have tested it in Google-Chrome and Mozilla's Firefox web browsers. You can view any browser, and if it works well, you may acknowledge our comments below. You can also kill browser processes in Linux terminal processes / services.
In Google Chrome, type about:memory in the address bar and you should get something similar to the following figure.
View Chrome memory usage
In the Mozilla Firefox browser, type about:memory in the address bar and you should get something similar to the image below.
View Firefox memory usage
If you already know what it is, in addition to these options. To check memory usage, you can also click on the leftmost 'Measure'' option.
Firefox main process
It will show the process memory usage through the browser tree.
That's it so far. I hope all the above tips will help you. If you have one (or more) tips to share with us, it will help Linux users manage their Linux systems / servers more effectively.
Thank you for reading this article carefully. I hope the article "what are the tips for using Linux desktops" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.