Page tree

Michael O'Brien

Skip to end of metadata
Go to start of metadata

Ubuntu

Developer Guide#Linux-Ubuntu16.04/18.04

Redhat/Centos

Developer Guide#Linux-RHEL8.0

Shell Artifacts

All the hosts on a private subnet

for ip in $(seq 1 254); do ping -c 1 192.168.0.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.0.$ip UP" || : ; done

Immediate mode for loop

for a in {1..10}; do ls; sleep 1; done


  • No labels

1 Comment

  1. powershell core for osx

    https://docs.microsoft.com/en-ca/powershell/scripting/install/installing-powershell?view=powershell-6


    biometric:biometric michaelobrien$ dotnet tool install --global PowerShell


    Welcome to .NET Core 3.1!

    ---------------------

    SDK Version: 3.1.100


    Telemetry

    ---------

    The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.


    Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry


    ----------------

    Explore documentation: https://aka.ms/dotnet-docs

    Report issues and find source on GitHub: https://github.com/dotnet/core

    Find out what's new: https://aka.ms/dotnet-whats-new

    Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https

    Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

    Write your first app: https://aka.ms/first-net-core-app

    --------------------------------------------------------------------------------------

    Tools directory '/Users/michaelobrien/.dotnet/tools' is not currently on the PATH environment variable.

    If you are using zsh, you can add it to your profile by running the following command:


    cat << \EOF >> ~/.zprofile

    # Add .NET Core SDK tools

    export PATH="$PATH:/Users/michaelobrien/.dotnet/tools"

    EOF


    And run `zsh -l` to make it available for current session.


    You can only add it to the current session by running the following command:


    export PATH="$PATH:/Users/michaelobrien/.dotnet/tools"


    You can invoke the tool using the following command: pwsh

    Tool 'powershell' (version '6.2.3') was successfully installed.

    biometric:biometric michaelobrien$

    biometric:biometric michaelobrien$ pwsh

    PowerShell 6.2.3

    Copyright (c) Microsoft Corporation. All rights reserved.


    https://aka.ms/pscore6-docs

    Type 'help' to get help.