Mertie  Feil

Mertie Feil

1597673460

gpm Command in Linux with Examples

GPM (“General Purpose Mouse”) software provides support for mouse devices in Linux virtual consoles. This package provides a daemon that captures mouse events when the system console is active and delivers events to applications through a library. By default, the daemon provides a ‘selection’ mode, in order that cut-and-paste with the mouse works on the console even as it does under X. It is used to select the text, drag the mouse while holding the left button, or to paste text within the same or another console, press the center button. The right button is employed to increase the choice. Two-button mice use the right button to paste the text.

Installation:

It is included in most Linux distributions, but in case it is not, then run this command to install gpm.

sudo apt-get install gpm

Syntax:

sudo gpm [options]

#linux-unix #linux-command #linux-system-commands #picked

What is GEEK

Buddha Community

gpm Command in Linux with Examples

Examples of the dig command in Linux

Dig Command Line Options and Examples
Here is the frequently used command line options and example’s of dig command.
1. Basic Dig Command
A basic dig command accept domain name as command line parameter and prints Address record.
2. Query With Specific DNS Server
The default dig command queries to dns server configured on your system. For example, the Linux systems keep default DNS entry in /etc/resolv.conf.
3. Print Short Answer
Use +short command line option to print result in short form. This is basically useful with the shell scripting and other automation tasks.
4. Print Detailed but Specific Result
Use +noall with +answer to print detailed information but specific. This will print only answer section including few more details as a result.

#linux commands #command #dig #dig command #useful examples #linux

Useful Example for the mv command in Linux

mv Command Examples
Below is the basic mv command examples on Linux terminal.

  • Rename file in current directory – For example rename file source.txt to dest.txt in current directory.
  • Move file to destination directory – Move a source.txt file available in current directory to /tmp directory. In above command the file name is unchanged at target directory. You can also rename file name at destination directory just by providing filename at destination.
  • Move file from source directory to destination directory – We can also move files or directory from some other directory to destination directory.
  • Move multiple files to destination at once – The mv accepts multiple source files and move them to the destination directory at once. The following command will move file1.txt, file2.txt in current directory and /opt/file3.txt to the /tmp directory. Here the last command line parameter is used as destination by the mv command.

#linux commands #command #mv #useful example #mv command #linux

Mertie  Feil

Mertie Feil

1597673460

gpm Command in Linux with Examples

GPM (“General Purpose Mouse”) software provides support for mouse devices in Linux virtual consoles. This package provides a daemon that captures mouse events when the system console is active and delivers events to applications through a library. By default, the daemon provides a ‘selection’ mode, in order that cut-and-paste with the mouse works on the console even as it does under X. It is used to select the text, drag the mouse while holding the left button, or to paste text within the same or another console, press the center button. The right button is employed to increase the choice. Two-button mice use the right button to paste the text.

Installation:

It is included in most Linux distributions, but in case it is not, then run this command to install gpm.

sudo apt-get install gpm

Syntax:

sudo gpm [options]

#linux-unix #linux-command #linux-system-commands #picked

Examples of how to use the lsof command in Linux

Below are some of the popular usage of the lsof command.

  1. List all open files
  2. List by filename
  3. List open files by username
  4. List open files by process
  5. List open files by PID
  6. List open files containing directory
  7. Repeat mode
  8. List open files with network protocol
  9. List open files by port
  10. List open files by IPv4/IPv6
  11. List open files on NFS
  12. List locked deleted files

#linux #command #lsof command #examples

date command in Linux with Examples

date Command Examples
Show date time in UTC/GMT
View past dates on specific days
View future dates
View date in other timezone
Print date in specific format
View file modification time

#linux commands #command #date #linux