Skip to main content

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
1 vote
1 answer
97 views

Keep command line visible while scrolling

Unsure what the best place to tackle this would be .bashrc? Using different shell? Some fancy terminal emulator? Basically, I just want to keep seeing the command line / the last line of the terminal ...
sonofevil's user avatar
  • 127
-1 votes
1 answer
775 views

Can't use terminal, I keep getting "zsh: command not found: npm" even after an OS re-install

I don't remember what I had done, but every time I attempt to run a command (npm install -g gulp) in terminal, it returns a zsh: command not found: npm. This is a command I previously had no issue ...
Arnold Palmer's user avatar
0 votes
2 answers
226 views

Remove all files with name starting with single quote

I need to delete all files with these names (the quotes are part of the name): 'index.html?some-query-string' I tried with: rm \'index.html?*\' I get this error: rm: cannot remove ''\''index.html?*'...
Giacomo M's user avatar
  • 143
-1 votes
3 answers
105 views

How do I delete files with "- copy" in the name using wildcards?

I have a problem, which appears that How to delete files with specified text in their names? would delete what I don't want deleted. Because of an issue with OneDrive after installing an extra ...
Chris Rogers's user avatar
  • 1,490
0 votes
1 answer
303 views

How do I make a command line always show in front of another app

let's say I only have one monitor and I open an IDE and a powershell window. I need to type words in the IDE's current tab while watching the conent of the command line. The problem I have is, ...
user22155685's user avatar
0 votes
1 answer
34 views

linux command line, rearrange djvu file to facilitate book index use in reader

To read books that have an index on my laptop or ereader, I like to make the first page in the reader/viewer be the first page of the text, so that the book's Index page numbers correspond directly ...
user985675's user avatar
0 votes
1 answer
58 views

How to simply cleanup a filename?

OS: Kubuntu 22.04.4 LTS x86_64 to display above: neofetch --stdout |grep 'OS:' . How to simply cleanup a filename, not file contents? by removing from a filename: \n newlines \t tabs non printable ...
joseph22's user avatar
  • 367
0 votes
0 answers
41 views

Any way to add playlists with Apple Music streaming content to Apple Music library from command-line?

It's straightforward to add m3u playlists of locally-stored files to the Apple Music app from the command-line. Is there any way to create and add a playlist of streaming content to the library, for ...
Adam J. Kessel's user avatar
0 votes
4 answers
156 views

How to auto power on windows laptop when lid is opened from shutdown state just like hibernation state?

It has been observed that most laptops power back on by themselves upon reopening the lid if they were in hibernation mode. However, this behavior is not replicated when the laptop was in full shut ...
user3330840's user avatar
0 votes
0 answers
20 views

How can I completely delete a user in Windows via the command line? [duplicate]

There is a user Alice that logged in a lot of windows machine using your AD account. In every computer, the windows create the user's files like: c:\users\alice Now I want to complete remove this user ...
Rodrigo's user avatar
  • 101
0 votes
0 answers
16 views

Removing User Account through Registry using .BAT [duplicate]

I am not the best at scripting but do know enough to write and modify to do what I want. This is an Enterprise environment and after adding a computer to the domain, we would like to delete the user ...
Corey Jackson's user avatar
0 votes
1 answer
37 views

How to use ffmpeg speedup video specific time range in one line ffmpeg cli

I try following splited cli, they work well ffmpeg -i "$input_file" -filter_complex "[0:v]trim=start=0:end=10,setpts=PTS/10[v1];[0:a]atrim=start=0:end=10,asetpts=PTS/10[a1]" -map &...
chikadance's user avatar
0 votes
1 answer
236 views

Broken pipe, write error: An epidemic of unnecessary output

In the last few months, a problem has been spreading across my systems. That of broken pipe errors: # Solution: # silenced by replacing /bin/bzip2 -> bzip2-reference # to /bin/...
Hincor's user avatar
  • 1
0 votes
2 answers
46 views

An incorrect path is displayed in my custom command line prompt in bash

I would like to display the current and parent directories in my Linux command prompt. For example, if the current directory is /home/user/proj/src, I'd like the prompt to display proj/src. I found ...
Epsilon's user avatar
  • 103
0 votes
1 answer
345 views

How to delete domain from laptop through cmd prompt

Hi I just brought a latitude 5330 laptop and when I charged it up and turned it on it is locked to a domain. I have the login details for the local account but there is no where to log in to it on log ...
Devil Spawn's user avatar
1 vote
0 answers
72 views

Update Google Chrome extensions from the command line [closed]

How can I update Google Chrome extensions from the command line? I'm running macOS 12.7.4.
XDR's user avatar
  • 131
0 votes
0 answers
51 views

Why can I get a ftp file by navigation, but not through full path?

I an trying to download a file from an ftp server that is in a sub-subfolder. I could find in the expected place with FileZilla but my program (trying to download using the full path) gave an error ...
Grollo's user avatar
  • 283
1 vote
0 answers
76 views

How to split a big folder into multiple standalone archives using RAR or 7-Zip console?

Example: I want to add a 100 GB folder to archives of 10 GB each using RAR or 7-Zip console on Windows. But each archive must be independent/standalone and able to extract without the other archives. ...
unixcandles's user avatar
0 votes
1 answer
179 views

batch findstr not working with string saved in a variable

I'm trying to find a string inside a file.txt using findstr and I have the following issue: set "log_file=C:\Tools_Dev\log_file.txt" a-findstr C/:"text to find" %log_file% works ...
Fernando Lisa's user avatar
2 votes
1 answer
51 views

How can I use the last changed file as an argument in linux?

I'm thinking of using the last changed file as an argument to commands like ls, echo, or cat, is there a simple and efficient way? this question arose when I was faced with analyzing the latest log ...
Ilgar's user avatar
  • 21
1 vote
1 answer
130 views

Disable auto-complete Linux

How do I prevent multiple inputs from occurring when holding down a key? If I hold down a key like an arrow key it will repeat the key event rapidly. To prevent this I have tried xset -r 103 r off ...
Abbatrombone's user avatar
0 votes
1 answer
71 views

How to bring a job to foreground and then disable job control in bash?

I have a program running in a terminal window. I wish to disable the Ctrl+Z shortcut from suspending the process. After pressing Ctrl+Z, the command fg && set +m unfortunately disables job ...
SeparatedScheme's user avatar
0 votes
1 answer
265 views

What secure erase in the fastest way on Windows 10 with cmd? [duplicate]

I have a program in QT, C++ and I want to secure erase the computer after a trigger. After this process, I do not want the old data on the SSD to be accessed by data recovery programs. I want this ...
mrhndsm's user avatar
0 votes
2 answers
172 views

Cmd 32 bit crashes but 64 bit works

I have tried to run a .net core 8 code that worked for me 3 days ago. But now it crashes with error related to access violation Same code works on another computer So i tried to look for the cause and ...
Y.G.J's user avatar
  • 109
0 votes
1 answer
15 views

Change album title and genre using additional command-line in Exact Audio Copy

The version of my Exact Audio copy is V1.3 I'm trying to change the genre and album title of the CD track using the additional command-line in Extact Audio Copy, but I'm not succeeding. 1 - Original ...
Clamarc's user avatar
  • 663
0 votes
0 answers
84 views

Open new Google Chrome tab in a named window

I'm on Linux and I use scripts to open webpages. I also group my tabs into named Chrome windows, i.e. --window-name="Group 1". How can I open a new tab in a specifically named window? ...
Majal's user avatar
  • 957
1 vote
0 answers
44 views

Github Copilot CLI npm version vs gh cli version - what to use in future

There seem to be 2 variants of Github Copilot for CLI: NPM: https://www.npmjs.com/package/@githubnext/github-copilot-cli part of GH CLI: https://docs.github.com/en/copilot/github-copilot-in-the-cli/...
dermoritz's user avatar
  • 791
-1 votes
1 answer
134 views

Uninstall SourceTree using cmd or powershell

I would like to use cmd or powershell commands to uninstall SourceTree from windows 10 machines on my network. The reason I need a terminal way is that I have to do this remotely and simultaneously ...
Kristi Begaj's user avatar
0 votes
2 answers
205 views

alias doesn't work in fish shell on macOS

I've been struggling with an issue that I cannot find mentioned anywhere and I cannot trace down. I can't leverage any of the alias command functionality in fish, which also breaks fish integrations ...
Adrian's user avatar
  • 214
0 votes
2 answers
1k views

How to safely store environmental variables and make it actually invisible in my PC?

I am learning about environmental variables. I know for example that if I have a secret password I should not code it inside of my code. From what I understood is that a .env file should be used to ...
Federico Gentile's user avatar
0 votes
1 answer
415 views

OpenVPN disconnect without killing process

I am using OpenVPN on ubuntu like this sudo openvpn --config vpnconfig.ovpn --daemon I am wondering is there a way to stop/disconnet OpenVPN connection I started without killing OpenVPN process?
Node.JS's user avatar
  • 113
0 votes
1 answer
57 views

Exclude all folders containing "discarded" with 7z

When I do 7z a test.zip -x!*discarded* test with test/ test/a.txt test/subfolder/ test/subfolder/a.txt test/subfolder/discarded/ test/subfolder/discarded/a.txt test/subfolder2/a.txt test/subfolder2/...
Basj's user avatar
  • 1,900
0 votes
0 answers
211 views

Git Bash doesn't display characters correctly, using Visual Studio Code's integrated terminal

I use Git Bash as the default terminal profile on Windows. When I execute this command, I get the below output: memlab run --scenario tests/oversized-object/index.js > 'command' �����ڲ����ⲿ���Ҳ���...
Lin Du's user avatar
  • 101
1 vote
0 answers
418 views

How to launch classic Outlook from the command line?

I'm trying to create a shortcut that launches Outlook's calendar in its own window: So far I have the shortcut setup: "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE" /select ...
Jason Horner's user avatar
0 votes
0 answers
54 views

Unsing ranger fm, how can I preview a file's thumbnail

I have images in HEIC format on my Synology NAS. I installed ranger in a docker container, and I can preview most videos and images (connecting using iTerm on mac), but HEIC is not supported. Synology ...
Adi's user avatar
  • 131
0 votes
1 answer
43 views

How to encrypt folder files using zip.exe [closed]

Example -path1 - desktop/file_source Path2 - desktop/e_data_source. How can we encrypt files from desktop/file_source to desktope_data_source path using zip.exe in cmd. Could you please help me.? Is ...
Siri chandana's user avatar
0 votes
0 answers
44 views

Command prompt is located in the wrong position on the screen

Multiple windows are opened in my tmux. In most windows, the command prompt is located at the bottom of the screen like this: However, in one window, the command prompt got fixed in the middle of the ...
cat's user avatar
  • 3
1 vote
0 answers
264 views

How to properly escape in windows command shell - even the asterisk?

By following good (though sometimes conflicting) advice such as Quotes, Escape Characters, Delimiters - Windows CMD - SS64.com or Escape character – Wikipedia, section 2.6 Windows_Command_Prompt or ...
Hagen von Eitzen's user avatar
-2 votes
1 answer
113 views

Batch script to re-size JPEGs in music folder to 350x350 and delete unwanted files

I currently use a script to rename music folders from eg. Taylor Swift - 1989 to a new folder Taylor Swift with a subfolder 1989 with all files moved into it. I've also added a rename line to change ...
Shane Cusack's user avatar
0 votes
1 answer
87 views

How to get the return value of pipe and executable on Windows

I am running some unit tests which involve piping into my executable, like this. cat text.txt | my_exe --options Running these commands, how do I get the return value of my_exe? Even when my_exe ...
scx's user avatar
  • 183
2 votes
1 answer
363 views

Issue while Concatenating TXT Files

I hope you're all doing well. I have a simple command-line prompt that I use on Windows to concatenate all TXT files into one file named "merged." copy *txt merged.txt However, I've ...
Hasan Mougharbel's user avatar
0 votes
0 answers
635 views

How can fzf's command history search always be shown, automatically and without CTRL-R?

With fzf you can press CTRL-R to have a command history search box shown below the prompt and fuzzy search. I want it shown automatically for each new prompt, without having to press CTRL-R.
Oneechan69's user avatar
0 votes
0 answers
218 views

Failed to enable unit: Invalid argument systemctl enable .service

I have made a startup_test.sh with the following contents cd /home/xyz/Desktop/ gnome-terminal -e "bash -c ./efg" #desktop folder contains an executable named efg. If I run gnome-terminal -...
Vinod's user avatar
  • 133
0 votes
0 answers
43 views

How can I complete individual command line phrases / do partial completion with fzf?

With fzf I can press CTRL-R to search my command history but it completes the whole command. What I'd like is to just complete the current argument, the next phrase before the next space. Can this be ...
Oneechan69's user avatar
3 votes
1 answer
1k views

How do I solve the "PuTTY X11 proxy: No authorisation provided" error?

I am trying to run firefox on a remote server over ssh and use X11 forwarding to open the window on my laptop, but when I try to it throws the "PuTTY X11 proxy: No authorisation provided" ...
Isaakfire's user avatar
1 vote
2 answers
600 views

Passing a variable to a variable within a batch file

I'm grabbing a value from the registry assigning it to %%b and trying to pass %%b to another area within the batch file as shown below. But it comes out as %b. It does not pass the variable a second ...
GenShira's user avatar
0 votes
1 answer
52 views

docker-compose output format has changed to long, how to get back short output?

Output of docker compose ps command in docker compose version v2.20.x and earlier was short, since "COMMAND" column was truncated: $ sudo apt-get install 'docker-compose-plugin=2.20.*' [...] ...
AntonioK's user avatar
  • 378
1 vote
2 answers
168 views

Why does zip --exclude only exclude files in the folder but not the folder itself?

I have the following command run in the bash shell which excludes the files in the folder scripts/. I tried the answer in Zip command for excluding directories and files but unfortunately it did not ...
Macky's user avatar
  • 93
0 votes
1 answer
979 views

What is wrong with this "move" command?

I am trying to use command in Windows 10 as administrator to move 27,000 HTML files from one directory to another. When I use the command it reports that there is a syntax error. So what is wrong with ...
aussie1855's user avatar
0 votes
1 answer
118 views

How to grep on mysql CLI command output?

mysql> SHOW SLAVE STATUS\G *************************** 1. row *************************** Slave_IO_State: Waiting for source to send event Master_Host: xx.xx.xx.xx ...
Vaughn's user avatar
  • 103