Linux – File Names with special characters

Background Here I am trying to add a file to git It is a simple git add command.   Script Original   Error Warning - Could not open directory - No such file or directory Error - Image Error - Text   Revision Outline Please escape the special characters git add "$_folder/oracle/v$instance/v$instance.oracle.sql" git add "$_folder/oracle/v\$instance/v\$instance.oracle.sql" … Continue reading Linux – File Names with special characters

Git – Client – Commands

Background Let us review some of the GIT commands one will use each day. List of Command   Command Description Syntax Link File Operation Add Add a new file git add <filename> Link Remove Remove an existing file git rm <filename> Link Rename or Move Rename or move an existing file git mv <filename> <folder> … Continue reading Git – Client – Commands

Git – Client Tools – Install on Linux ( Cent-OS )

Background I need Git on the Cent-OS that I am working on. I am on v8 of CentOS. Outline Is Git Installed? Install Git Review Git Install Configure Git Tasks Is Git Installed? which syntax sample output Output Image Output Text Explanation We have confirmation that git is not installed.   Install Git dnf dnf … Continue reading Git – Client Tools – Install on Linux ( Cent-OS )

vi – Error – “E45: ‘readonly’ option is set ( add ! to override)”

Background Trying to save a file in vi, but "No Go". Error Number Error Image Error Text E45: 'readonly' option is set (add ! to override) Troubleshooting Outline File Info ls File Info ls Syntax Sample Output Output - Image Output - Text Explanation From issuing ls, we can see that our file's owner is … Continue reading vi – Error – “E45: ‘readonly’ option is set ( add ! to override)”

ClamAV – Installation on CentOS – v8

Background Need an AntiVirus on my CentOS box. AntiVirus ClamAV is free and works on CentOS. Outline Package Verify ClamAV yum yum list installed dnf dnf list installed Install Identify Artifacts Install Artifacts Review Review Packages Configure ClamAV Configure SELinux Configure Services List of Services clamd@.service freshclam.service Configure Service Start Service Review Service Status Tasks … Continue reading ClamAV – Installation on CentOS – v8

GoLang – Availing on Linux

Background Let us avail the go runtime on our system.   Lineage OS Microsoft - MS Windows Link   Linux Though my primary OS is MS Windows, I play around a bit with Linux, as well. Options There are a couple of options for availing go on a Linux system. The options include:- rpm Repositories … Continue reading GoLang – Availing on Linux

Linux – CentOS – Set Timezone

Background Playing around with Linux, queried the system for the current time, and noticed it is a bit off.   OS OS - Linux - CentOS Our OS is CentOS/Version 8. Command hostnamectl We can issue hostnamectl, to get the OS Name and Version. Output     timedatectl Outline timedatectl timedatectl status timedatectl list-timezones timedatectl … Continue reading Linux – CentOS – Set Timezone

Linux – File System – Listing File Systems

Background What is the File System on our disks? Outline Commands df ( Disk Free ) lsblk ( List Information on the block devices ) lshw ( List Hardware ) file ( File Command ) mount ( List Mount Points ) blkid ( List Information on Available Block Devices ) System Configuration File /etc/fstab Commands … Continue reading Linux – File System – Listing File Systems

Powershell – Linux – Invoke Using Command Argument

Background There are a couple of ways to invoke Powershell in Linux. Options Here are a couple of Options:- -File -Command Payload - File Syntax Sample Payload - Command Outline To get username Environment::UserName Syntax Sample Hello World Output Output - Image Output - Text Explanation We printed out our username Environment Variables and $PSVersionTable … Continue reading Powershell – Linux – Invoke Using Command Argument

Linux – CentOS /v8 – Avail Python/v2

Background Let us get Python version 2 to be the default Python version on our machine. Outline List installed Python Versions If not installed, Install Python version 2 Review Installed Locations Set Python Version 2 as the default version of Python Confirm Current Version of Python List Installed Python Versions Outline alternatives compgen alternatives Outline … Continue reading Linux – CentOS /v8 – Avail Python/v2