Questions tagged [command-line]

An interface for interacting with a computer using typed commands in a text-oriented environment, as opposed to a graphical user interface (GUI).

Filter by
Sorted by
Tagged with
0 votes
2 answers
15 views

Show only folder name with the link information via Windows DIR

How can I get only folder and its symbolic link information output via dir? What I want is this, where CNET and projects are symbolic links: CNET [\\192.168.1.10\CNET] elements localized projects [\\...
andio's user avatar
  • 251
0 votes
0 answers
13 views

How to mount a folder as a Drive and give it a label using command line in windows [duplicate]

I have admin priviledges on my PC and using windows 11. I use this command lines to mount my local folder to a Drive letter & also trying to give a label : subst z: c:\Users\andi\temp label z: ...
andio's user avatar
  • 251
1 vote
1 answer
17 views

Does renaming Windows.old folder prevent its deletion or no?

I was asked to help a person with that person's computer. The installation of Windows 10 failed for some reason, but the important files were safely put in the Windows.old folder. The system does not ...
Kowu's user avatar
  • 13
0 votes
1 answer
20 views

Unified write filter serving mode

Right now, we want to remotely manage Windows updates on devices via endpoint manager. Because we have UWF enabled (this blocks any changes to the machine), the endpoint manager forced updates will ...
Joseph Victoria's user avatar
-5 votes
0 answers
51 views

Revenge Prank on Office Coworker [closed]

This may be impossible, however I'm looking to mess with a coworker. Came back from being sick to everything being upside down on my desk. I've tried running shutdown -i and msg to no avail. Both give ...
Josh's user avatar
  • 1
1 vote
0 answers
25 views

VLC for macOS command line audio delay

I have a bunch of videos that have both audio and subtitles delayed by half a second. I can play them on VLC and manually adjust it by pressing F 10 times and H 10 times, but I'd like to automate that ...
Apollo's user avatar
  • 151
9 votes
2 answers
1k views

How do I reset file ownership at the command line when the files are owned by users from a dead domain?

I feel like telling a story, so if you want to get to the meat of the question, skip down to the horizontal line. Original title: Zombies from a dead domain won't give me my files! I ran into a ...
Spencer's user avatar
  • 283
1 vote
1 answer
53 views

Press any key to exit in command prompt?

I have an autohotkey script that runs cmd to check the hash for the selected file. I use certutil command for that task. #h:: hwnd := WinExist("A") for Window in ComObjCreate(&...
medukia's user avatar
  • 23
0 votes
1 answer
20 views

Robocopy - Suppress output of dashed lines

I use a batch file to call Robocopy to backup files from my Documents drive to my external hard drive. I use RoboForm's logging functions to also output the results of each folder backup to a text ...
James Byrne's user avatar
0 votes
0 answers
40 views

How to create a batch file or script to run command prompt in multiple directories [closed]

I tried to search this and other sites but could not find a solution. So I want a one click file, that I can click and it will open multiple command prompt windows in multiple folders. Like C:\Program ...
brundo's user avatar
  • 9
0 votes
1 answer
45 views

"ls: cannot open directory '.': No such file or directory" in Git Bash (in VS Code terminal)

I am working in a Git Bash terminal within Visual Studio Code. For some reason, when the behavior of the terminal changed so that if I execute ls, the result is ls: cannot open directory '.': No such ...
Paul Wintz's user avatar
0 votes
0 answers
18 views

Use 7zip to create archives for each subfolder and file

Under Windows environment, I have a folder contains both subfolders and isolated files. The structure is like this: D:\main_folder subfolder1 subfolder2 file1.dat I want to use 7zip to make the ...
range's user avatar
  • 1
0 votes
3 answers
48 views

How to look on a Subfolder using FOR loop in windows CLI

Hey Team I am trying to execute an app that is in a folder constantly changing the name due to version difference C:\root\my Folder\subfolder_Ver_1\app.exe I want to look in my Folder and find app.exe ...
JORGE Mb's user avatar
0 votes
1 answer
43 views

Unknown commands hogging all my cpu. " ./10 -c/tmp/ ..."

What command is ./10 -c/tmp/ ... ? I have tried killing it with no luck. Other than reboot what are my options? How could I find out what triggered it? What command was it, I need to identify what ...
c3cris's user avatar
  • 400
0 votes
2 answers
62 views

How to force declare -f to respect semicolons

Given the function hello () { echo "one"; echo "two"; } Inside a script I'm using cmd="$(declare -f hello); hello" then I try executing the command using bash -c $cmd, ...
weshouman's user avatar
  • 243
2 votes
0 answers
36 views

Delete the autorun key from the command processor in the registry

Every time I tried to run cmd recently it would just pop-up and close immediately, and only Powershell worked on my PC. I found a solution that asked me to navigate to HKEY_CURRENT_USER\Software\...
Mateo López Torres's user avatar
0 votes
1 answer
136 views

How to convert code from test format to if fi format?

I have code that opens a bash file in a terminal for entering the sudo password: test "$IN_TERM" || { export IN_TERM=1 konsole -e "$0" exit 0 } && true I need ...
moninah's user avatar
  • 23
0 votes
1 answer
25 views

Adding an empty line between the powerline/prompt line and the output line in ZSH?

I am using p10k, and I haven't seen any option other than # Add an empty line before each prompt. typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true which that adds a line before the powerline/...
Centaro's user avatar
  • 11
0 votes
1 answer
105 views

How to send an email from one user to another, locally and offline?

I'm just testing a few things with e-mail and want to send something with mailutils strictly locally and offline from one user to another: tbird@mordor:~$ tbird@mordor:~$ mail nicholas@mordor....
Nicholas Saunders's user avatar
0 votes
0 answers
30 views

how to open an mbox file with mailutils for local use?

How do I open the mbox file for offline local usage? Just looking to browse the messages with the mail command and expecting a menu listing the messages. From the man pages, I didn't see an explicit ...
Nicholas Saunders's user avatar
0 votes
1 answer
28 views

running a multi-threaded script on a macPro to a smb-mount folder throws an error

We're trying to run a multi-threaded script from our macPro but we keep getting an error massage. The xml script contains parameters to run a specific tool, the paths to the raw data and other ...
Assa Yeroslaviz's user avatar
1 vote
1 answer
96 views

Compress each directory to its own Zip file from command line

I have a directory of directories. I want to compress each of them in to its own zip file, keeping the same name. I don't want it to be recursive, I just want to compress dozens of folders in the same ...
Will Hanley's user avatar
0 votes
3 answers
100 views

Batch script to take first & second part of folder name and create new folders from them

Any wizards out there that can help with this? I have some music folders labelled like this "Taylor Swift - 1989" etc with just the music files and folder image in the one folder. I need ...
Shane Cusack's user avatar
0 votes
0 answers
28 views

Windows cmd won't recognize changed PATH

Few days ago I installed Tesseract OCR by installing Capture2Text via Chocolatey. This proved not to work, and instead of uninstalling Capture2Text I went ahead and deleted the Capture2Text folder ...
Elizabeth V.'s user avatar
2 votes
0 answers
60 views

How to do a search and replace for byte 92 and 96 in “.htm” files in Linux?

I have hundreds of `.htm' pages that were created years ago where most of the content was copied from Microsoft Word. Unfortunately the pages contained word specific characters like the single curly ...
Phunction's user avatar
0 votes
1 answer
26 views

How can I add a timestamp to a monitored command (like "netstat") in Windows commandline?

Using netstat -aon | findstr /I "1234", I can monitor that this port is open, but there is an issue: this is what the result looks like: UDP 0.0.0.0:1234 *:* 5064 UDP 0.0.0.0:...
Dominique's user avatar
  • 2,071
1 vote
1 answer
103 views

Disable Microsoft Edge Restore Pages Functionality

I scheduled a batch script with Task Scheduler to routinely close and reopen Edge to my website once a day while the browser is opened in Kiosk mode. I have: Taskkill /F /IM msedge.exe :: wait three ...
sushi's user avatar
  • 115
0 votes
0 answers
120 views

Trying to run HLDS (Half-Life Dedicated Server) in the Ubuntu CLI - but I keep getting "Unable to initialize Steam."

I have a headless linux server running Ubuntu that I ssh into. I run a variety of server programs on it, such as a papermc for Minecraft. I am trying to set up a HLDS server for Half-Life. I've ...
mrmanager's user avatar
2 votes
1 answer
44 views

How to convert a PDF with one long page into a PDF with mutiple A4 pages?

I have long PDFs with one page of very large height. I want to take each of these PDFs and generate on the Linux/macOS command line a new PDF file from it that is A4-paginated. I tried using qpdf to ...
halloleo's user avatar
  • 343
0 votes
1 answer
83 views

Robocopy with Task scheduler in invisible mode for KIOSK mode or alternative

Computer Setup: Computer in KIOSK mode through Shelllauncher on Windows 10 LTSC. Problem trying to solve: I am looking to move local files on network drive. Solution I found which have some gaps: ...
TSS's user avatar
  • 1
0 votes
1 answer
98 views

Persistent atop display of system stats

When I start atop, it will blink *** System and Process Activity since Boot *** and show system and process activity since boot. After 10 seconds, it will show system and process activity in the past ...
wdkmaaeo's user avatar
2 votes
2 answers
93 views

Powershell (windows 11) move files and rename

I am trying to write PowerShell that will allow me to clean up files and place them into folders and rename them to include a date in the filename, and once I work out the commands, I will script it. ...
psycoperl's user avatar
2 votes
1 answer
153 views

Linux file search: fdfind command vs. fdz command

I'd love to use the fdz command to search for files on a Linux system, the presentation of fdz results is much more pleasant. But there's something I need to resolve first. An example will be much ...
mazda's user avatar
  • 113
0 votes
0 answers
52 views

List all Volumes of an SMB share on Windows

I have enabled SMB sharing on a MacBook Pro with an IP address 192.168.128.29. On another MacBook Pro, I can connect to server with smb://192.168.128.29/ and after providing the username and password,...
C1pher's user avatar
  • 191
0 votes
1 answer
60 views

Windows 11, How to have 2 outputs with 1 command?

Windows 11 command prompt: Output1: This command chkdsk /r d: works fine and outputs data to screen. But how much time does above command take? ran second command and Answer was 6 hour 12 minutes ... ...
joseph22's user avatar
  • 199
0 votes
1 answer
35 views

Is there a shell command that opens multiple images in one instance of the microsoft photos app?

I'm on Windows 11 and let's say I have a folder that contains a few JPEG images. If I navigate to that folder, highlight the images and hit 'enter' it opens all the images in one window of the ...
user1713174's user avatar
0 votes
0 answers
36 views

WinX. FULLY functional USB Flash Drive stopped working when usin a recovery tool (EaseUS). EaseUS became unresponsive, leading to the drive errors [duplicate]

USB SanDisk 3.2Gen1 USB Device (64Gb Flash Drive) WinX EaseUS The drive is visible in Windows Explorer but... if I click to open it... the cursor changes to the hourglass icon for about 40 seconds....
Mermaid Man's user avatar
0 votes
2 answers
53 views

Windows taskkill not finding titled cmd.exe

I'm starting a lot of .bats, in which I execute, for example: title Waterfall-Proxy I do this, to have an easier closing the right cmds when I want to shut them down. To shut them down, I'm using: ...
Deutsch - Musik's user avatar
1 vote
1 answer
36 views

Windows Termin new tab and command

I'm trying to open a new tab in Windows terminal and execute a command after that. I've got this: wt -w 0 nt -d . cmd /k cd "D:\Minecraft\Waterfall Network\Waterfall Network - 01 - Proxy" &...
Deutsch - Musik's user avatar
3 votes
1 answer
107 views

How do I copy the URL contained in the Internet shortcut with unicode characters? (command line for many Internet shorcuts)

The subject was in part studied, there is 8 years (here : How do I copy the URL contained in the Internet shortcut?) I have thousand Internet shortcuts that I would like copy the URL contained to txt ...
dg lr's user avatar
  • 33
1 vote
1 answer
51 views

Pipe in argument list of bash function

I'm using simple function to make my script more verbose. cmd() { echo "[#] $*" >&2 "$@" } When calling script with option -v all commands goes through cmd function: ...
yar83's user avatar
  • 13
0 votes
1 answer
55 views

Windows .Bat file behave differently when executed from command window and by double clicking on the bat file

batchfile is simple which has only two lines below, but behaves differently. run from command window. > sc \\server query | findstr SERVICE_NAME | find /c /v "" //result is 135 > ...
OfusJK's user avatar
  • 101
0 votes
0 answers
34 views

How to prevent a console window from being "paused"?

I run local network web servers via the cmd prompt and noticed that the Pause/Break button will put the server in a state that is quite hard to deal with. Normally, if the server is not running, the ...
Nelson's user avatar
  • 1,363
0 votes
1 answer
52 views

Open shell of container when write start command

When i want to open shell of container when start container i get this error I use this command : docker start -i <Container name> sh but get this error : you cannot start and attach multiple ...
mamad2559's user avatar
  • 101
0 votes
1 answer
56 views

Opening a new instance of a OneNote notebook via Windows Batch Commands?

I'm attempting to use a batch file to open up a OneNote notebook .url shortcut, however, the notebook always ends up opening in the existing OneNote instance, replacing the existing view in the ...
S. Wow's user avatar
  • 1
0 votes
1 answer
57 views

Python Can Run with Typing "python.exe" Rather Typing "python"

I have added python to env on PATH correctly C:\Users\username\AppData\Local\Programs\Python\Python38\ But now I need to type python.exe to start it rather than typing python like before And it will ...
Michael's user avatar
0 votes
0 answers
122 views

Ffmpeg: color related commands

I use hlae+ffmpeg for recording and for parameters of recording i set: -c:v ffv1 -pix_fmt gbrap16le -coder -2 -g 1 -threads 4 -context 1 -slices 30 -slicecrc 1 -level 3 -fps_mode passthrough -...
Skyfall's user avatar
0 votes
1 answer
46 views

Node wont run from cmd unless the .exe extension is added

So this is a very weird one. Let me start by saying that things used to work fine. I installed Node a few days ago and once complete I opened a command prompt (On Windows 10), I entered node --version ...
Jacques Ramsden's user avatar
0 votes
1 answer
96 views

Send info from ffmpeg to text file & then parsing into a new file

I am trying to scan a directory of .mkv files and output the volume information to out.txt and then parse out.txt for volume_max and send it to log.txt using for %i in (*.mkv) do ffmpeg -i "%i&...
Preston's user avatar
0 votes
2 answers
37 views

switching from one directory to another directory with same name different path in command line

In Linux, I have two directories (just an example, this structure exist for every project checkout): /root/user/<project>/<parent_directory>/<long path>/test /root/user/<project&...
vijay's user avatar
  • 1

1
2 3 4 5
258