Author Topic: I 'think' I'm coming to grips with using 'Terminals' !!  (Read 1437 times)

0 Members and 1 Guest are viewing this topic.

Offline GlennSpriggTopic starter

  • Super Contributor
  • ***
  • Posts: 1259
  • Country: au
  • Medically retired Tech. Old School / re-learning !
I 'think' I'm coming to grips with using 'Terminals' !!
« on: April 18, 2021, 01:17:43 pm »
(As my Profile says... Retired, old school, re-learning.. haha..)
Some of my previous posts have been about my (now successful) utilization of various VirtualBox 'Guests', like Mac-OS, Ubuntu-Mate, and Android-X86,
mainly for the simple purpose of self education, and a bit of fun!!  However, I can't help myself from delving under the hood!!  As a Windows user, I've
never had to delve into 'Terminal' mode as much as I am now, especially with regards to Ubuntu/Linux.  (Yes, I know you don't 'have' to as a basic user).

I WON'T get into the argument (truth) how they all started from some form of Unix/Linux anyway, but I am now slowly understanding & playing with all
the different under-hood File-Systems for all those above, which is SO different from Windows!!  It took me a while to realize that there is NO simple Drive-C
or 'D' or what ever, as all such 'devices' are merely specific files/folders. After many hours of videos explaining the various OS 'file-structures', and how to find
my way around them, it's all starting to make sense!  :)    I've come to one conclusion though, that I can't see the point(?) of setting up an Android-X86 Guest,
when BlueStacks does it all, SO much better/faster, & with virtually full hardware compatibility ??

Anyway... Re: BlueStacks, it doesn't take a Rocket-Scientist to realize/find 'BlueStacks Tweaker' !! that can remove/block all the Ads, 'ROOT' it, and amongst
other things include a powerful simplistic file viewer, that works under the hood. Although now playing with Terminals has greatly increased the Fun, when
in 'SuperUser' modes, at folder/file level. I've also done some software 'cracking' just for fun!, delving deep into Mac-OS & Android, and editing certain files.  8)
It's been a fun ride so far, and I keep on learning!
Diagonal of 1x1 square = Root-2. Ok.
Diagonal of 1x1x1 cube = Root-3 !!!  Beautiful !!
 

Offline MrMobodies

  • Super Contributor
  • ***
  • Posts: 1912
  • Country: gb
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #1 on: April 18, 2021, 07:30:13 pm »
I remembered using Bluestacks some years ago to experiment a Wifi Olympus dictatphone recorder DM-901. What I did I joined Netgear Wdnap210 to it in bridge mode, connected it to a pfsense firewall and setup some static routes using the same network range as the dictaphone wireless and "App" found it as it seems looking just for that IP address. It does things like, record, stop, and I think it can download recordings to the whatever device it was on. I also wanted to test out some SKY RC batteri charges but couldn't find a way of getting to work with bluetooth.
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: se
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #2 on: April 18, 2021, 08:49:34 pm »
Kudos!
You enthusiasm is refreshing!
Always nice to learn and tinker.

And since you are coming to terms with terminals, I would advise to invest some time in getting to know Windows.
There's now a decent terminal program, much nicer than the usual console.
Also on github, if you feel like it.

But the container is not much without good content: enter PowerShell.
PowerShell is a very powerful scripting language, with a regular syntax (Verb-Object), object-oriented and on Windows - it's also available on Linux and Mac - a deep integration with the system.

Good string handling, arithmetic etc.: it vaguely reminds me of DCL (VMS scripting language) - because, you know, not all OSs come from a Unix root (truth!)...but I digress, not the discussion I want to have now! :blah:

It tends to be verbose, though, but all cmdlets have auto complete and most shorter default aliases.

While Windows 10 comes with PS 5 by default, PowerShell 7 is available.

The set of available commands covers 99% of what you can do with the GUI, plus tons of other stuff.

As an example of its versatility, I use a PS script to send WoL UDP packets to machines on my network, and it uses no external programs.
As a second example, at work I used it to drive a simulation from a table of input parameters, and table out the results.

About Windows and the disks: "C:" is just a name for a volume with its special path, and devices also have their own:
Code: [Select]
PS C:\WINDOWS\system32> Get-Volume -DriveLetter C | Select-Object -Property Path

Path
----
\\?\Volume{4fffff70-6001-01d5-b887-efa700b0ea00}\

PS C:\WINDOWS\system32> Get-Disk -Number 2 | Select-Object -Property Path

Path
----
\\?\scsi#disk&ven_samsung&prod_ssd_840_evo_250g#5&2c4dbacb&0&010000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}


The upper OS layers rely on that alias for too many things (and backward compatibility), but it is possible (and has been for ages) to mount other disks under folders instead of assigning them letters. For example, I mounted an SD card under C:/mount (and yes, PS - and in general Windows calls - accepts forward slashes, cmd does not though):
Code: [Select]
PS C:\> Get-WmiObject Win32_Volume | Where-Object -Property Name -Like "*mount*" | Format-Table -Property Name,Label,FileSystem

Name      Label       FileSystem
----      -----       ----------
C:\mount\ NIKON D7100 exFAT
Nandemo wa shiranai wa yo, shitteru koto dake.
 
The following users thanked this post: GlennSprigg

Offline GlennSpriggTopic starter

  • Super Contributor
  • ***
  • Posts: 1259
  • Country: au
  • Medically retired Tech. Old School / re-learning !
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #3 on: April 19, 2021, 07:22:23 am »
Thanks newbrain . I'll delve into that a bit more!  :)

P.S.   何でもは知らないわよ。知ってることだけ。Maybe so, but I think you know a lot !!   :-DD
Diagonal of 1x1 square = Root-2. Ok.
Diagonal of 1x1x1 cube = Root-3 !!!  Beautiful !!
 
The following users thanked this post: newbrain

Offline fordem

  • Regular Contributor
  • *
  • Posts: 234
  • Country: gy
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #4 on: April 21, 2021, 01:14:04 pm »
My introduction to "terminals" predates both Microsoft & the IBM PC - I've worked with both the "teletype" and it's successor the "glass teletype" attached to a minicomputer via a serial port.  QModem was my terminal emulator back in the DOS days, followed by HyperTerminal Private Edition after I moved to Windows, Putty is now my goto.
 
The following users thanked this post: GlennSprigg

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 5679
  • Country: au
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #5 on: April 21, 2021, 07:37:53 pm »
I found that my years of working in MS-DOS prompt and just understanding syntax in general helped greatly when it came to learning Linux commands. Now I find myself typing ls in Windows instead of dir.
 
The following users thanked this post: GlennSprigg

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: se
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #6 on: April 21, 2021, 08:19:38 pm »
I found that my years of working in MS-DOS prompt and just understanding syntax in general helped greatly when it came to learning Linux commands. Now I find myself typing ls in Windows instead of dir.
Which, (un)surprisingly works quite well - as long as you don't use any options:
Code: [Select]
~\Git\RT1020\scripts [NewUI ≡ +0 ~2 -0 !]> ls

    Directory: C:\Users\feder\Git\RT1020\scripts

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---          2021-04-19    19:22           1098 clang_arm_toolchain.cmake
-a---          2021-04-12    13:15           1083 compiler-rtPScmd.txt     
-a---          2021-04-21    01:00            529 create_version.cmake     
-a---          2021-04-12    13:15           1641 mem_sizes.cmake
-a---          2021-04-12    23:59           1096 options.cmake
-a---          2021-04-12    13:15            482 RT1020_library.ld       
-a---          2021-04-12    13:15           1499 RT1020_memory.ld
-a---          2021-04-12    13:15           6832 RT1020.ld
-a---          2021-04-12    13:15            730 system_deps.cmake       
-a---          2021-04-12    13:15             77 version.h.in

~\Git\RT1020\scripts [NewUI ≡ +0 ~2 -0 !]> alias ls

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           ls -> Get-ChildItem                                                 
as it's part of the standard alias in PowerShell  ;)
Nandemo wa shiranai wa yo, shitteru koto dake.
 

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 5679
  • Country: au
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #7 on: April 22, 2021, 09:07:35 am »
I found that my years of working in MS-DOS prompt and just understanding syntax in general helped greatly when it came to learning Linux commands. Now I find myself typing ls in Windows instead of dir.
as it's part of the standard alias in PowerShell

In PowerShell yes, but not the standard Command prompt if I recall correctly?
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: se
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #8 on: April 22, 2021, 01:27:04 pm »
In PowerShell yes, but not the standard Command prompt if I recall correctly?
No, it's not, one can use DOSKEY to define one, though.
The cmd language has been quite extended from the old days, and now lets you write decent scripts.
Still, PowerShell is on another level - I've not willingly used cmd in ages.
Nandemo wa shiranai wa yo, shitteru koto dake.
 

Offline GlennSpriggTopic starter

  • Super Contributor
  • ***
  • Posts: 1259
  • Country: au
  • Medically retired Tech. Old School / re-learning !
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #9 on: April 24, 2021, 11:57:16 am »
My introduction to "terminals" predates both Microsoft & the IBM PC - I've worked with both the "teletype" and it's successor the "glass teletype" attached to a minicomputer via a serial port.  QModem was my terminal emulator back in the DOS days, followed by HyperTerminal Private Edition after I moved to Windows, Putty is now my goto.

I remember back in the days with my 'Security Systems' work, (I dunno... 20-30 years ago!), virtually every 'Smart' (then!) security/access-control
panel//equip had an 'RS232' socket on the side. As did those ancient 'laptops' back then!!!  One would plug it in, and select the ubiquitous Baud
rate, Parity, stop bits etc, and 'talk' to them via a Terminal program on the 'Laptop'. A simple DOS style interface for programming & data acquisition.
It SEEMED so High-Tech back then, and customers were amazed !!!    8)
Diagonal of 1x1 square = Root-2. Ok.
Diagonal of 1x1x1 cube = Root-3 !!!  Beautiful !!
 

Offline rsjsouza

  • Super Contributor
  • ***
  • Posts: 5986
  • Country: us
  • Eternally curious
    • Vbe - vídeo blog eletrônico
Re: I 'think' I'm coming to grips with using 'Terminals' !!
« Reply #10 on: April 24, 2021, 12:37:02 pm »
Glenn, the terminal is a beautiful thing; I have been using it for quite some time and the mechanical memory you end up getting is very powerful. Welcome to the "new" world.
Vbe - vídeo blog eletrônico http://videos.vbeletronico.com

Oh, the "whys" of the datasheets... The information is there not to be an axiomatic truth, but instead each speck of data must be slowly inhaled while carefully performing a deep search inside oneself to find the true metaphysical sense...
 
The following users thanked this post: GlennSprigg


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf