Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Some practical tips Linux     - Hadoop 2.7.1 Installation and Configuration under RedHat Linux 6.5 (Server)

- Linux compiler installation Redis (Database)

- On FreeBSD 10.2 Bugzilla how to install and configure Apache SSL (Server)

- Linux delete duplicate files Artifact: dupeGuru (Linux)

- HAproxy let IP recording back-end RS (Server)

- The free command in Linux (Linux)

- How screenshots from the Linux command line (Linux)

- Configuration based on open source Lucene Java development environment (Server)

- Doubly linked list basic operations (Linux)

- Understanding the Linux load average on other UNIX-Like systems (Linux)

- Automatic batch resolve dependencies problem locally installed rpm package (Linux)

- JavaScript notes --Objects (Programming)

- Linux disk partition batch format mount script (Linux)

- Linux firewall to prevent external network attacks (Linux)

- Analytical Ceph: handle network layer (Server)

- Apache Kafka: the next generation of distributed messaging system (Server)

- PostgreSQL procedural language learning (Database)

- C language programming entry - Common operators (Programming)

- Oracle 10g relations with the constraint of column properties NULLABLE (Database)

- Java coding conventions (Programming)

  Some practical tips Linux
  Add Date : 2016-05-23      
  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)

$ Lsblk

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.

# W

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.
- Using Maven to download Spring (Linux)
- Linux ln command - create a file / directory link (Linux)
- CentOS7 Minimal minimize installation and then install the GNOME graphical interface (Linux)
- Manual cleaning Oracle audit records (Database)
- Crawl use Wireshark packet on remote Linux (Linux)
- MySQL flip-flop (Database)
- FastDFS installation and deployment (Server)
- PHP generates a random password several ways (Programming)
- Linux automatically install service components and optimize the kernel parameters (Linux)
- Use PuTTY key authentication mechanism for remote login Linux (Linux)
- High-performance JavaScript loops and flow control (Programming)
- Ubuntu install Scala 2.10.x version (Linux)
- Simple to install Tor browser to Ubuntu 14.04 and Linux Mint 17 (Linux)
- Kibana use installation (Linux)
- Linux under DB2SQL1024N A database connection does not exist. SQLS (Database)
- Solve ORA-01012: not logged on (Database)
- How to install Hadoop on CentOS7 (Server)
- RHEL 6.6 install GNOME desktop environment (Linux)
- Linux resource restriction level summary (Linux)
- Vim simple configuration (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.