Key Points
- Ubuntu good for many purposes
- IBM focuses on Red Hat
- Alpine now used for Hyperledger
References
Reference_description_with_linked_URLs__________________________ | Notes__________________________________________________________________ |
---|---|
https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html | online Bash man pages |
https://linuxhandbook.com/linux-alias-command/ | Linuxhandbook free version |
Articles | |
file:///C:/Users/Jim%20Mason/Google%20Drive/_docs/howto/linux/linux-cmd-cheatsheet-0.pdf | Linux Command Cheat sheet file:///C:/Users/Jim%20Mason/Google%20Drive/_docs/howto/linux/linux-cmd-cheatsheet-0.pdf |
https://www.computerhope.com/unix/sftp.htm | sftp |
putty ssh | |
SSH key generation for remote access to Github Gitlab etc | |
Rsynch | |
IBM i remote access tools | |
Key Concepts
Remote access using SSH or SFTP
for Putty see m Linux Remote Access Tools
Bash
most Linux platforms have a Bash shell
~/bashrc
Bash commands
may have to download man support if not available
https://www.geeksforgeeks.org/alias-command-in-linux-with-examples/
find commands
find -E -H -X -f ./_gd/work iregex ".*log" 2>/dev/null -exec ls - {} \; > ./temp/_f_log1.txt
find from a directory, search for files ending in 'log', redirect errors to null device, execute list to an outfile
Google Drive on find command
find /Volumes/'Google Drive'/'My Drive'/_writing -iregex '.*gdoc.*' 2>/dev/null -exec ls -l {} \;
alias commands
https://www.geeksforgeeks.org/alias-command-in-linux-with-examples/
alias -p. // list all aliases
alias. dothis='my cmd string eg ls -Al ./"my folder" '
unalias x
Windows Gitbash shell
Windows 10 offers download of Gitbash
Gitbash does not include man pages or gzip
Gitbash does include git
to switch directories on Windows >> cd /D/mydir
Windows provides basic help in the shell
help lists all bash commands
help git lists the commands and options for git
Putty SSH
copy and paste text in putty
To copy from Windows and paste into PuTTY, highlight the text in Windows, press "Ctrl-C," select the PuTTY window, and press the right mouse button to paste.
To copy from PuTTy and paste into Windows, highlight the information in PuTTY and press "Ctrl-V" in the Windows application to paste it.
sftp - secure ftp
https://www.computerhope.com/unix/sftp.htm
login as a user to a remote host sending password
psftp homenet_dmx_internal@sftp.dmx.io -pw 7Au6XjArGV5w3JE1BqGkrO2EAtedFI
psftp> help
! run a local command
bye finish your SFTP session
cd change your remote working directory
chmod change file permissions and modes
close finish your SFTP session but do not quit PSFTP
del delete files on the remote server
dir list remote files
exit finish your SFTP session
get download a file from the server to your local machine
help give help
lcd change local working directory
lpwd print local working directory
ls list remote files
mget download multiple files at once
mkdir create directories on the remote server
mput upload multiple files at once
mv move or rename file(s) on the remote server
open connect to a host
put upload a file from your local machine to the server
pwd print your remote working directory
quit finish your SFTP session
reget continue downloading files
ren move or rename file(s) on the remote server
reput continue uploading files
rm delete files on the remote server
rmdir remove directories on the remote server
Potential Value Opportunities
Potential Challenges
Candidate Solutions
Step-by-step guide for Example
sample code block