Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Terminal keywords highlighting [closed]

I saw on a tutorial that when you write keywords on the terminal it automatically highlights them: In my case it shows conda in same color (white) Already try to change the theme, but didn't worked. ...
Mateo Buenahora's user avatar
0 votes
0 answers
33 views

Is there a name for the text that shows up after executing each command line in a CLI?

for example in linux terminal I have jurek@debian:~$ man help No manual entry for help I want to know how the second line is called bc I want to ask an other question "How to copy this term (I'm ...
konto's user avatar
  • 33
0 votes
1 answer
112 views

ls -ltr on the terminal lists the files but says "No such file or directory" in a shell script

I am new to Bash and am practicing some shell scripts. I wanted to write a script to list all the folders and their file count, if a root path is passed as a parameter value from the terminal. The ...
MNIA's user avatar
  • 1
0 votes
0 answers
50 views

Display new prompt after tty redirect on second terminal

I'll try to explain the title better :) I have two terminals tty1 and tty2, let's call them that. From tty1 I redirect the output from echo to the tty2 terminal with: echo hello > $(tty2) This ...
Daniel's user avatar
  • 1
1 vote
1 answer
208 views

Kitty terminal: How can I attach to a zellij session upon starting up Kitty

I want zellij attach -c to run once Kitty is loaded up. I tried adding startup_session launch.conf to my config file, and writing kitty @ send-text "zellij attach -c" in launch.conf as well ...
Oneechan69's user avatar
0 votes
1 answer
37 views

Extract filepaths of .MP4 files in subfolders of main folder to textfile

I am on Mac. I want to use terminal or something to extract the filepaths of the .MP4 files within a folder with multiple levels of subfolders. I have a main folder that has subfolders. Each subfolder ...
Helppleaseme's user avatar
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
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
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
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
1 answer
173 views

numpad enter remapped in new macOS updates for alacritty

I have been having annoying problems with my terminal Alacritty. In macOS after recent updates my numpad enter is not giving me what I would expect when I press it. Normal Keyboard enter. ❯ whoami ...
nelaaro's user avatar
  • 13.7k
0 votes
3 answers
71 views

display path to files with same names

with this command in Terminal: ls -R |sort | uniq -d | sort -r I can display a list of files with the same names located in the running directory and subdirectories. But I would like to display also ...
all2alb's user avatar
2 votes
2 answers
676 views

What is the command line shortcut to uncomment a previously commented line?

Alt+Shift+3 can only comment out, on subsequent invocations simply adding multiple comment characters (hashes) instead of toggling on / off the comment. How to uncomment a previously commented line or ...
mirekphd's user avatar
  • 157
0 votes
1 answer
82 views

What command to force dd output to a fixed width of 90 characters?

using: neofetch --stdout |grep 'OS:' OS: Kubuntu 22.04.3 LTS x86_64 dd --version dd (coreutils) 8.32 Background: re-purpose a disk = objective some script is being developed some script will delete ...
joseph22's user avatar
  • 367
1 vote
1 answer
237 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
2 votes
1 answer
109 views

Change argument to -y, --yes, --assume-yes

Can anyone help me alter this script to automatically YES? y? I don't need to or want to confirm yes, I just want to pass yes into the shell shortcut. cat << "EOF" >> ~/.zshrc ...
Outer's user avatar
  • 23
0 votes
1 answer
102 views

ls with range name of file

I have files with numeric as it's file name. 10asdfsfl.txt 11sdfkf.txt 20sdfdf.txt 22sdfdf.txt 30saadf.txt 40asdfdf.txt 51sadfsf.txt 62ddgfg.txt if I use ls -l [40-50]* it returning list of files ...
snydez's user avatar
  • 5
2 votes
2 answers
9k views

is there a command line in ChromeOS which is equivilent to the terminal in linux

The terminal(penguin) in ChromeOS is just a VM which does not really seem to effect the chromeos it self. And then you got crosh which does not save things after you close it. So is there a full ...
james.yi's user avatar
0 votes
0 answers
147 views

How to make shorten mac terminal prompt in bold using powerlevel10k?

I'm using oh-my-zsh, powerlevel10k, colorls and fig to customize my mac terminal. Now i have just one issue that i want the current directory name in bold. And one more problem that i want to change ...
ami_PBJ's user avatar
-2 votes
2 answers
287 views

How to use CD command in Windows Terminal with custom environment variables?

If I create a environment variable, I can use it with Win+R and enter %MyVariable%. The directory opens in Windows Explorer. However, if I try to do the following using Windows Terminal cd %MyVariable%...
iamveryfriendly's user avatar
0 votes
0 answers
153 views

Directly connecting a internal node of a remote server

I was trying to open files like .ipynb via terminal command line (command: code) on the remote server in VSCode. But code is not in PATH, so I used ~/.vscode-server/bin/...
xu chen's user avatar
0 votes
2 answers
359 views

why is windows 11 terminal with launch size of 256 x 80 is bigger than a command prompt at same launch size

Just updated to Win 11 and am dealing with the default terminal. I'd like to be able to use multiple tabs of command prompts (note: I use a console editor for writing my SAS code that wants a 256 x 80 ...
William Viergever's user avatar
0 votes
1 answer
492 views

Extention for scrolling down in linux terminal

I want to scroll down in pages in terminal that are not command running area like in man page or set | less page. I have discovered that through pressing fn key, we can scroll down fast and the right ...
Humza Config's user avatar
1 vote
1 answer
1k views

Windows Terminal Not Picking up PATH variable

I'm using the latest Windows Terminal + Windows 11 + Powershell 7, and I came accross a very strange problem all of a sudden. I'm getting very weird behavior from windows terminal, after restarts, ...
Yehia A.Salam's user avatar
0 votes
1 answer
65 views

Streaming outputs to another window without running the same commands again on iterm2

First of all, I think every command running consumes some resources. So if I'd like to have another window displaying the same output of the same commands being run on another session without running ...
11100100's user avatar
6 votes
6 answers
12k views

Why does Windows 11 PowerShell or terminal lack Linux command line tools?

I am using Windows 11. In the terminal, the usual Linux commands are not available. So commands such as chmod and vim return command line errors like: vim : The term 'vim' is not recognized as the ...
tachyon's user avatar
  • 289
0 votes
1 answer
396 views

Checking my understanding regarding the difference between Terminal and Shell

I am trying to test my understanding regarding the difference between terminal and shell. The terminal is just a text-based interface in which it accepts commands from the user. Moreover, the terminal ...
John adams's user avatar
0 votes
1 answer
565 views

How to change the behaviour of "tab" key from "Insert a tab" to "Completion" in sftp CLI in Windows Terminal?

I am recently switching from Ubuntu to Windows 11 and found this feature not working: In Ubuntu terminal, when I am using sftp CLI, Tab means to complete the file/folder name in the directory. However,...
SimZhou's user avatar
  • 111
1 vote
0 answers
16 views

How to disable Windows built-in keyboard using command [duplicate]

Is there a way i can disable the Windows built-in keyboard via Terminal Preview, Just like how i can accomplish the same thing on Ubuntu with thee command xinput disable <key> ?
Arduino_Sentinel's user avatar
0 votes
1 answer
629 views

How to set an startup command for PowerShell in Windows Terminal app for specific pane?

I set Terminal Windows application to be in startup of Windows. I have the following panes in Terminal in the following order: Ubuntu PowerShell PowerShell CMD Ubuntu Now I want to whenever I open ...
Saeed's user avatar
  • 423
1 vote
1 answer
963 views

what's the equivalent of copy con <filename> in linux/bash

In DOS/Windows, we can do the following on the command prompt copy con [filename] <ENTER> this will copy whatever you enter into the terminal into the filename. Now, what's the equivalent of ...
anjanbacchu's user avatar
  • 1,407
1 vote
3 answers
980 views

Open terminal to execute command and then terminate if successful

I want to open a terminal and have it accept to execute one command and then terminate (so that the terminal closes). Optionally, this should only happen if the previous command was successful to ...
Mahoni's user avatar
  • 209
1 vote
0 answers
347 views

Globally store all command line / bash / windows terminal input and output into text log files

I am looking for a global and automated way to always log all the input and output of all of the command line windows I am using into text files. I am using 3 types of console on Win 10 - git-bash.exe,...
Bartosz's user avatar
  • 173
2 votes
0 answers
115 views

How to source from stdout for both Linux and macOS?

On Linux I can do: source <(cat .env | grep ANDROID_GRADLE_TASK) But on macOS, this doesn't do anything (no error, and no source) What can I use for macOS? Is there a command that works both on ...
Dimitri Kopriwa's user avatar
0 votes
1 answer
697 views

"echo $VAR | base64 -di > file" fail to execute on MacOS

On Linux I can do: echo ${ANDROID_KEYSTORE} | base64 -di > android/keystores/staging.keystore But on MacOS, the same commands gives: base64: option requires an argument -- i Usage: base64 [-hvDd] ...
Dimitri Kopriwa's user avatar
0 votes
1 answer
156 views

Aborting scriptreplay messes up my terminal. How to undo and potentially prevent?

I recorded a long running command with the script command and wanted to have replayed with scriptreplay. After I saw what I wanted to see I aborted it with Ctrl + C (aka SIGINT) and now line breaks ...
BrainStone's user avatar
9 votes
1 answer
37k views

Update the Windows Subsystem for Linux (WSL) to WSL 2

I have a list of instructions to follow but when I get to step 6 I'm met with There is no distribution with the supplied name. Can someone please lead me in the right direction please? Thse are the ...
user1737305's user avatar
0 votes
0 answers
651 views

Play two audio files at the same time on different devices

How can I use a single ffmpeg or ffplay command to play two audio files at the same time, but through different output devices? As is documented, this command plays a single audio through the output ...
minseong's user avatar
  • 1,018
0 votes
0 answers
333 views

Alias not exported from .zprofile to folder location that exists

In my .zprofile, I have a bunch of aliases that follow the same pattern: export remotedir="$HOME/remote" export localdir="$HOME/local" etc. They all work, except for one, which ...
user345435's user avatar
0 votes
2 answers
218 views

Why is my Mac Terminal using Chinese double quotes?

I am trying to type cd ~/ in my terminal, and I got cd: no such file or directory: “/Users/xiwei”/ For some reason, it's using the Chinese Quote “” instead of the standard  "". If I type cd ...
Xi Wei's user avatar
  • 101
2 votes
1 answer
3k views

zshell says command not found in MacOS

I'm using MacOS Monterey 12.4. When I open zsh I get immediately /etc/zshrc:7: command not found: locale /etc/zshrc_Apple_Terminal:104: command not found: mkdir I understand that my terminal ...
Alberto Carraro's user avatar
0 votes
2 answers
889 views

Find all files of name recursively, touch, and chmod all in one terminal command?

I am trying to run a single command to change all .DS_Store files within a directory and all subdirectories recursively. So far, I have been using the following commands to find the files, set their ...
MikMak's user avatar
  • 2,107
4 votes
2 answers
2k views

What's the opposite of `/` in Command Prompt (nushell)?

Whenever I accidentally press / +Return. I end up at the root of the current drive, or C:\. Is there an opposite operation? A shortcut to last location? Anything? I'm using nushell, on Windows 10.
Mossa's user avatar
  • 151
1 vote
2 answers
320 views

Works from terminal prompt. How to get bash script working?

using: Ubuntu 20.04.4 LTS (Focal Fossa) GNU bash, version 5.1.16(1) and script --version script from util-linux 2.34 These commands are working from a terminal prompt: script /home/x/Desktop/clamlog2....
joseph22's user avatar
  • 367
1 vote
1 answer
3k views

run multiple npm script from another directories by writing only one command

I have application with frontend and backend folders. With structure like this. application ├── frontend │ └── src │ └── build │ └── package.json └── backend └── src └── build └── ...
Tvseans's user avatar
  • 113
0 votes
1 answer
698 views

How to open windows 10 in cli/tui mode

I want know if it possible to install and boot windows 10 home in cli/tui like you would do in something like arch linux i know that windows before xp had dos mode because of 9x kernel but windows xp ...
user avatar
0 votes
1 answer
4k views

Terminal returning error "bash: /usr/bin/(command) /bin/bash: bad interpreter: No such file or directory" unless command is preceded with bash

When I look up this particular error on the web, every single one of them are in regards to shell scripts. I keep getting this error in the terminal itself and my home server is completely unusable ...
TrotskyDotsky's user avatar
1 vote
1 answer
249 views

zsh alias for running the most recent matching history item

I'd like to create an alias in zsh that runs my last terminal command beginning with node. I can run that command with !?node, but I can't create an alias with alias N='!?node'. How can I make this ...
Raffi's user avatar
  • 163
0 votes
0 answers
87 views

How can I change terminals command line color?

I found that this terminal is so beautiful. But I don't know how to configure it. In this video, you can see that the command and argument are in different colors like this . I'm developing on macOS ...
BogdanXin's user avatar

1
2 3 4 5
12