Windows:- WSL – Where is your home directory (~)

Background Let us identify our home's directory on Microsoft Window's WSL install.   On Linux, Home Directory is ~ On Linux, Home directory is ~ Echo Let us use the echo command to confirm that ~ in fact points to the home directory. Syntax   Sample Output Image Text Explanation Our home directory is /home/<username>. … Continue reading Windows:- WSL – Where is your home directory (~)

Windows:- WSL – Accessing Network Shares

Background Let us go over how to access Microsoft Network Shares from within WSL ( Microsoft's Windows Subsystem for Linux ). Glossary What is /mnt? Control-Escape.Com I like the definition availed via Control-Escape.Com. And, so let us use that definition. Guide to Linux for Beginners - ADDING FILE SYSTEMS TO THE TREE Link To gain … Continue reading Windows:- WSL – Accessing Network Shares

OS Commands:- Find Files Processed In the Last N Days

Background I need to find files that I have worked on lately.   OS OS  Linux Find Command Samples Sample - Find Files modified In the Last 3 Days Outline Folder Folder is . . here means current folder Type Type is f Type is f as in file iname iname means case insensitive name … Continue reading OS Commands:- Find Files Processed In the Last N Days

OS Sort Command:- Sorting by column position

Background Let us sort by column position. Data Files Person.txt Image Metadata Column Position First Name 1 Last Name 2 Email Address 3 City 4 State 5 Postal Code 6 Display Text File Cat Command OS Platform - Win OS Not Supported OS Platform - Linux Parameters Parameter Description T Show hidden characters Syntax Sample … Continue reading OS Sort Command:- Sorting by column position

OS Sort Command:- Sorting by character position

Background When reading sample code and I see the following command I be like hold up, wait a minute. Data Files Person.txt Image Metadata Column Position Column - Start & End First Name 1 1, 20 Last Name 2 21, 40 Email Address 3 41, 70 City 4 71, 90 State 5 90, 100 Postal … Continue reading OS Sort Command:- Sorting by character position

Searching Text:- Case Sensitivity

Background As I looked through a generated file, I was a bit perplexed as to why some matches were missing. Code I went back and looked at the code I was using to generate the file, it looked OK. Yet, at the back of my mind, I am sorry that I did not follow up … Continue reading Searching Text:- Case Sensitivity

Search Text On The Terminal

Background For us who spend a lot of time on the command line in terminal node, we always have to sort through data returned through applications. The find and grep command comes in handy. Text File Let us use a simple text file. namelist.txt   Search Platform MS Windows findstr command Outline Display File Pipe … Continue reading Search Text On The Terminal

Git:- Show untracked files

Background Here I am after a good weekend of labor, I will like to make sure that added files are stored away in our source control.   Git Git Status When one issues "git status", it shows untracked files and directories. Git Status -u To show only untracked files, please append the -u option.   … Continue reading Git:- Show untracked files

WSL:- Provision CentOS

Background Let us quickly provision CentOS using WSL on a Microsoft Windows 10 system.   Microsoft WSL Linux Distributions Here are the Linux Distros that are officially supported by Microsoft WSL. NAME FRIENDLY NAME Ubuntu Ubuntu Debian Debian GNU/Linux kali-linux Kali Linux Rolling openSUSE-42 openSUSE Leap 42 SLES-12 SUSE Linux Enterprise Server v12 Ubuntu-16.04 Ubuntu … Continue reading WSL:- Provision CentOS