Novoroční ohňostroj Praha 1.1.2018

Posted in Linux | Comments Off on Novoroční ohňostroj Praha 1.1.2018

Hrad Kost a Trosky

Posted in Linux | Comments Off on Hrad Kost a Trosky

Send Commands or Data to Other Terminals (tty/pts)

A way how to execute commands on other tty/pts. A simple echo won’t work because echo writes to the output buffer, while I need to push these commands to the input buffer of the tty/pts. #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <string.h> #include <unistd.h> void print_help(char *prog_name) { printf(“Usage: %s […]

Posted in Linux | Tagged , , , , | Comments Off on Send Commands or Data to Other Terminals (tty/pts)

Linux Command Line Cheat Sheet

Bash Commands uname -a Show system and kernel head -n1 /etc/issue Show distri­bution mount Show mounted filesy­stems date Show system date uptime Show uptime whoami Show your username man command Show manual for command Bash Shortcuts CTRL-c Stop current command CTRL-z Sleep program CTRL-a Go to start of line CTRL-e Go to end of line […]

Posted in Linux | Comments Off on Linux Command Line Cheat Sheet

How to monitor file access on Linux with auditd

If you are running a mission critical server, or maintaining a storage server loaded with sensitive data, you probably want to closely monitor file access activities within the server. For example, you want to track any unauthorized change in system configuration files such as /etc/passwd. To monitor who changed or accessed files or directories on […]

Posted in Linux | Tagged , , , , | Comments Off on How to monitor file access on Linux with auditd

Basic vi Commands

What is vi? The default editor that comes with the UNIX operating system is called vi (visual editor). [Alternate editors for UNIX environments include pico and emacs, a product of GNU.] The UNIX vi editor is a full screen editor and has two modes of operation: Command mode commands which cause action to be taken […]

Posted in Linux | Tagged , | Comments Off on Basic vi Commands

Veritas Cheat Sheet

———————————————– DISPLAY and MONITORING ———————————————– vxdisk list List all disks used by Veritas (VX). vxdisk list <diskname> Display detailed information about a single disk, including mutlipathing information, size, type, Vx version, and more. vxprint Display report style information about the current status of all Vx componants, including disks, subdisks, plexes, and volumes. vxprint <componant> Display […]

Posted in Linux | Tagged , | Comments Off on Veritas Cheat Sheet

How to Increase the size of a Linux LVM by adding a new disk

This post will cover how to increase the disk space for a VMware virtual machine running Linux that is using logical volume manager (LVM). Firstly we will add a new disk to the virtual machine and then extend the original LVM over this additional space. Basically we will have two physical disks but just one […]

Posted in Linux | Tagged , , , , , , , , , , , | Comments Off on How to Increase the size of a Linux LVM by adding a new disk