I have written a series of tips and tricks for Linux article. The purpose of writing this article is to let you know that these tips can effectively manage your system / server.
Create Cdrom ISO image and monitor user in Linux
In this article, we will see how to use the CD / DVD drive to load the disc to create ISO image; open the manual pages random study; see the details of the user's login and view the browser memory usage, and all the full use of local tools / command, without any third-party applications / components. let's start......
Create an ISO image using CD discs
We often need to backup / copy the contents of the CD / DVD. If you are on a Linux platform, it does not require any additional software. All is needed is to enter the Linux terminal.
From a CD / DVD ISO image is created on, you need to do two things. The first thing is CD / DVD drive name need to find. CD / DVD drive name you want to find, you can use the following three methods.
1. From the terminal / console lsblk command (listed block device)
Get a block device
Can be seen from the figure, sr0 is your cdrom (ie, / dev / sr0).
2. To view information about the CD-ROM, you can use the following command
$ Less / proc / sys / dev / cdrom / info
Check information Cdrom
Can be seen from the figure, the device name is sr0 (ie, / dev / sr0).
3. Use the dmesg command will get the same information and use egrep to customize the output.
Command 'dmesg' output command / control kernel buffer information. 'Egrep' command to output matching rows. When using egrep -i option and -color ignore case, and highlight the matching string.
$ Dmesg | egrep -i --color 'cdrom | dvd | cd / rw | writer'
Find Device Information
You can see, the device name is sr0 (ie, / dev / sr0).
Once you know the CD / DVD name later, on Linux you can use the following command to create the ISO image (you see, you can just cat!).
$ Cat / dev / sr0> /path/to/output/folder/iso_name.iso
Here 'sr0' is my CD / DVD drive name. You should use your CD / DVD name instead. This will help you to create ISO images and backup of the contents of the CD / DVD without any third-party applications.
Create CDROM ISO image
Open a random page manual
If you are new and want to learn to use the Linux command-line switches, this skill is for you. Add the following line of code at the end of the ~ / .bashrc file.
/ Use / bin / man $ (ls / bin | shuf | head -1)
Remember to add the top line of the script in the user's .bashrc file, rather than the root .bashrc file. So, the next time you log on locally or remotely using SSH, you'll see a random open man pages for you to read. Who want to learn the command-line switches novice, which proved to be beneficial.
The following is the terminal log in twice, respectively, see.
LoadKeys man page
Zgrep man page
I hope you know how to exit the manual page for the browser - if you are tired of every time to see the man page, you can delete your .bashrc file to add a few lines.
View user's login status
Learn what other users are sharing on the server to do.
Under normal circumstances, you is shared Linux server users or administrators. If you are worried about the security of their servers and what you want to see what users are doing, you can use the command w.
This command lets you know if someone is tampering with the server or execute malicious code, let him stop or use other methods. 'W' is to check the status of the logged in user's preferred way.
To see what the logged-on user is doing, from a terminal run the command "w", preferably root user.
Check the Linux user status
Check the browser's memory usage
Recently a lot of talk about the memory usage of Google-chrome. To check the memory usage of the browser, simply type in the address bar "about: memory", without the quotes.
I've Google-Chrome and Mozilla Firefox web browsers were tested. You can view any browser, if it works well, you might recognize our comments below. You can also kill the browser process in the process of Linux terminal / service.
In Google Chrome, the address bar enter about: memory, you should get something similar to the following.
See Chrome Memory Usage
In the Mozilla Firefox browser, the address bar enter about: memory, you should get something similar to the following.
Check 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 master process
It will show the process tree memory usage of the browser.
So far the case. I hope that all of the above tips will help you. If you have one (or more) tips to share with us, to help Linux users to more effectively manage their Linux system / server.