Proper Linux environment, not using the existing Linux terminal. #19835
techguy16
started this conversation in
Enhancements
Replies: 2 comments 12 replies
-
Do you mean command prompt? What do you have in mind that would make it 'Linux'? |
Beta Was this translation helpful? Give feedback.
11 replies
-
1 Now, you can set Powershell as your default shell for Linux. Specific:
$variable_from_node_to_master = krun { get-date }
$variable_from_node_to_master.year
#----------
$object_from_master_to_node = get-date
$a = 1
krun { $args[0].year + $args[1] } -a $object_from_master_to_node,$a
# return 2024
$v2 = k_run_ip -ip 1.2.3.4 {
$bashcmd = @'
netstat -an | awk ' /LISTEN/{next};/^tcp/{s=split($5, N,":"); \
A[N[s-1]]++} END{ for (a in A) print a, A[a]} '
'@
${bashcmd} | /bin/bash
} Powershell gives your “Linux node” a pair of wings! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be nice if there was an official 'PowerShell' command line, customized for PowerShell on Linux. It's just an idea.
Beta Was this translation helpful? Give feedback.
All reactions