All Questions
26
questions
2
votes
0
answers
1k
views
How to list out all the distros available in windows subsystem for Linux in windows using windows PowerShell?
I installed the WSL form Microsoft store and the I have tried to get the list of distros using the below command.
wsl.exe --list --online
But I got the below error.
Failed to fetch the list ...
0
votes
0
answers
1k
views
How to open multiple files from different folders at once in cmd or powershell?
I have 4 folders inside my directory: f1, f2, f3, f4. Each folder has the same structure inside. I have to open a file contained in each folder with the same name (f1 has some other folders inside and ...
1
vote
0
answers
265
views
WSL displays lots of empty lines when running PowerShell commands
In WSL, I sometimes want to run PowerShell commands, but it weirdly creates a ton of empty lines. How do I prevent these empty lines from spamming my console or script output?
# Example1 (from Ubuntu ...
0
votes
0
answers
478
views
Check files integrity
The advice found on most sites is when you lose power on your PC, the best way to check files integrity for corruption is to check whether they are readable or not since chkdsk does it for the file ...
0
votes
1
answer
8k
views
How to Download files from the internet with powershell
I want to make my PowerShell download a file from the internet. So how could I do that my original code was $File = URL
Download file.WebClient = File.ext
1
vote
1
answer
789
views
Process terminates after SSH logout on windows server
I have a Windows server 2016 machine that needs to run an file that uses the cli, remotely using SSH.
It is known that logging out of an SSH connection terminates processes that were started by the ...
0
votes
1
answer
3k
views
utf8, utf8BOM, utf8NoBOM Powershell encoding
I have a couple of powershell automation scripts I wrote that sometimes require editing files used by linux OS family.
I know that windows ends strings in files using the CR LF flags, while linux uses ...
4
votes
1
answer
19k
views
rsync from Linux to Windows over SSH
Right now, I'm using SCP to copy directories from a Linux Server to a Windows 10 box. I'd like to use something like rsync instead, since the directory is fairly big and only a couple files change.
I ...
1
vote
1
answer
3k
views
Error when using 'winexe' tool. Trying to invoke Windows commands via Linux server
Successfully installed winexe tool(link) but when executing the tool, the following command appears
#./winexe -U 'domain\user%pass' //ip "tasklist /V"
ERROR: Failed to open connection - ...
0
votes
1
answer
2k
views
Corrupt .zip file after being downloaded by Netcat
I create a .zip file with WinRAR on my Windows, it can be opened and extracted on Linux as well as Windows if I transfer it via mail or any other common way.
But when I transfer it via Netcat, the zip ...
0
votes
1
answer
876
views
Is it faster to use WSL commands instead of cmd commands for file manipulation?
On Windows 10, it is possible to manipulate files through the command line via three separate built-in ways:
Powershell,
the command prompt, and through
bash commands via the WSL (Windows Subsystem ...
2
votes
2
answers
4k
views
Windows-to-Linux: Execute a shell script as user process (as bkgrnd) on remote machines
I am trying to do the following:
1) Run a shell script on remote machine 1,2,and 3 (all Linux) from Windows machine.
2) On my Windows machine I have plink which I am using in the following way:
...
1
vote
2
answers
902
views
"read -s" equavalent for windows?
In Linux you can type and store a value without displaying what you are typing by adding the -s argument to the read command.
Is there an equivalent command in Windows?
4
votes
1
answer
6k
views
how to record a terminal session in Windows?
Linux and Unix have the script command, which is quite useful:
The script command is a Unix utility that records a terminal
session.1 The scriptreplay command offers a replay function to
script....
2
votes
2
answers
883
views
Split or Copy file skipping byte Count
I am looking for a windows native cmd, or powershell command to emulate the same actions of 'dd' in linux.
I have 2 merged files, one appended to another, and I know the byte pointer for the ...