Questions tagged [terminal]

A terminal is a hardware device used for entering data into and displaying information from a computer. Terminals were frequently used in the days of mainframe computers. Today, most operating systems offer text-based "terminal emulators", which replicate the functionality of a classical terminal, also referred to as a "system console".

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

How to use zsh in flatpak vscode

I have Visual Studio Code installed in flatpak, I run it with: flatpak run --command=sh com.visualstudio.code I want to change the shell to zsh, but I can't find how to, I tried multiple thing in my ...
user avatar
-1 votes
0 answers
12 views

MacOS Terminal Async Infinite Loop In The Background

Is it possible to launch an infinite loop from .zshenv when a Terminal window starts up and for it not to block the terminal? Right now, I have an infinite loop that updates the title of the window ...
user avatar
0 votes
1 answer
21 views

I want to delete the all the file with the same extension

I have thousands of files with the below hierarchy. Mail folder -> sub folder -> example.xlsx Mail folder -> sub folder -> example.bck for example, I have thousands of "Main Folder&...
user avatar
  • 1
0 votes
1 answer
21 views

"Command not found: complete" message appears every time I open the terminal

I was setting up my development environment on Ubuntu 20.04 following a video on Youtube and after running the command $ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc Every time I ...
user avatar
0 votes
0 answers
9 views

Installing Wine 4.20 but winegcc: x86_64-w64-mingw32-gcc failed

I'm trying to install Wine 4.20 for the first time on a new MacBook Pro (16-inch, 2019) running MacOS Monterey (v12.1). I downloaded from winehq, entered ./configure --enable-win64, and then typed ...
user avatar
0 votes
0 answers
16 views

Adding Oracle server folder to Finder

I'm wanting to access my Oracle server files from the Finder application. This is what I've tried: screenshot Terminal Data: ➜ ~ sudo sshfs ubuntu@129.153.75.16:/remote/directory/path /local/elechill/...
user avatar
0 votes
1 answer
37 views

How to put colors in terminal?

I would like to use rgb(a) hex codes to display colors on the terminal. I intend to make some kind of program that can render colors inside brackets, like: [#FFFFFF]this is white text
user avatar
1 vote
1 answer
11 views

Opening file location in Ubuntu with Windows Terminal Preview

I found this article very helpful but would find it really useful to be able to do the same with an Ubuntu tab in WTP. Is this possible?
user avatar
1 vote
1 answer
32 views

How do I fix command output in terminal is invisible on external monitor

Sometimes, when I run a command in Windows Terminal, the output of that command will be invisible until I select the text in the terminal, then it appears one whole line at a time, even if I don't ...
user avatar
  • 111
0 votes
1 answer
18 views

Is there an shortcut to just pause without suspend in terminal?

In putty, the program running inside in screen is paused (Not just output when Ctrl+S is pressed but the whole program) (don't know how but some output is selected; somehow SIGSTOP is sent) and after ...
user avatar
1 vote
1 answer
13 views

special characters not rendering well in zsh

I'm running rxvt-unicode, with zsh + ohmyzsh. I just installed firacode, verified font name with fc-cache and set URxvt*font: xft:FiraCode in ~/.Xresources, and ran xrdb ~/.Xresources. Then I ...
user avatar
0 votes
0 answers
31 views

Every time I open the terminal I find `command not found`

Every time I open my terminal I find too many of these messages: /usr/local/etc/bash_completion:59: command not found: shopt /usr/local/etc/bash_completion:65: command not found: complete I am using ....
user avatar
0 votes
0 answers
29 views

macOS terminal: show filename with colors when using grep

When using Ubuntu I get these colors when using grep (grep -r "MSP" .): I want the same result when using macOS Monterey. I tried to add export GREP_OPTIONS='--color=auto' to my bash ...
user avatar
  • 101
0 votes
1 answer
20 views

How do I use sed to parse a string that includes hyphens?

Input example: foobar_1-1 1024 x 1024 Desired output foobar_1-1 The hyphen is causing issues here. It's causing the output to be two items in the array: foobar_1, 1 Any advice?
user avatar
1 vote
1 answer
48 views

Why does a windows Batch File work in the traditional windows console host but throws an error in the new windows terminal

I am able to run a simple batch file in the old traditional windows console host (CMD) but when running it in the new windows terminal it throws an error and fails. Various errors that are thrown: I ...
user avatar
  • 113
0 votes
0 answers
27 views

Can't locate a gemfile to install missing gems in termux

Am trying to install metaspoilt with my phone but in the process it requires me to install missing gems...on running 'bundle install' it tells me that it couldn't locate a gemfile...what might be the ...
user avatar
0 votes
0 answers
25 views

internal HDD with a bad sector - Can it be Saved?

I have a 2.5 inch internal HDD which seems to have malfunctioned as the drive was being erased on a console.  I connected it to an internal HDD enclosure to allow the PC to start and then plugged it ...
user avatar
  • 1
0 votes
0 answers
40 views

Windows powershell and cmd not loading properly (W11)

So my terminal was working completely fine this afternoon. I turn it on in the evening to work on a flutter project. After trying to run my file, I realised that the VScode terminal was unable to run ...
user avatar
0 votes
0 answers
18 views

How can I start building a process bar in Terminal macOS?

I am intreated to build a process bar by myself, not just copy and paste codes or using some one else code. I am looking for a starter project or link to learn it step by step. the goal is like this ...
user avatar
0 votes
0 answers
13 views

MacOS Big Sur terminal showing username@M51-Bad-Er

I was trying to install PHP and Laravel environment on My MacOS Big Sur when I needed to run a command to update environment paths it showed 'permission denied' one of the blogs stated that in the ...
user avatar
  • 101
0 votes
0 answers
18 views

Where Is the Beep Sound File Location in Minimalistic Debian?

I have installed Debian without a desktop environment or the standard system utilities simply because I do not need a desktop environment (yet), and because many of Debian's system utilities are ...
user avatar
1 vote
1 answer
19 views

Is there a way to reach iCloud's Pages folder via the Terminal?

You can get to iCloud drive from the Terminal using cd ~/Library/Mobile\ Documents/com~apple~CloudDocs/, but that doesn't show you all the same folders you see when you click the iCloud Drive link in ...
user avatar
7 votes
1 answer
856 views

Is the macOS Terminal only ever in English?

In Windows, string parsing in the command-line is a crapshoot, both for Batch and PowerShell. Essential command-line tools like fsutil and dcdiag return their output in strings which are ...
user avatar
  • 5,116
0 votes
2 answers
12 views

Printing the KeyMap pressed in zsh/bash

Is there a way for zsh/bash to print out the keymap of the next received keystroke ? I would press a key combination on my keyboard, and it would print, say keymap : ^A
user avatar
  • 437
0 votes
2 answers
37 views

Run Window can't open wt

A couple days ago I reinstalled windows and ever since, I can't open the Windows Terminal through the run window. I tried: Changing permissions to default, following this question Can't open ...
user avatar
1 vote
1 answer
32 views

cd-ing to a directory with a lot of spaces--mac terminal

I want to cd to a path with spaces in the folder names, but it doesn't work. I want to navigate straight to a directory which has multiple levels of directories on the way, each with a lot of spaces. ...
user avatar
1 vote
1 answer
199 views

Ubuntu 20.04: sudo apt-get update command error

I ran the sudo apt-get update command and I keep getting this output: Hit:1 http://za.archive.ubuntu.com/ubuntu focal InRelease Ign:2 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu focal InRelease ...
user avatar
0 votes
1 answer
24 views

ubuntu server temporarily stop all network traffic

I have an ubuntu machine connected to a openvpn server with inbound and outbound connections. In terminal, what is the best/cleanest/safest/least disruptive way to quickly stop/block all network ...
user avatar
  • 101
0 votes
2 answers
74 views

Can a script be made to run again if it crashes?

I might have the concept/language all wrong here so feel free to point me in the right direction if my thinking is wrong. I use a home media streaming app that is not really supported any longer, ...
user avatar
  • 356
0 votes
1 answer
14 views

Can not open a file from .bashrc with the terminal

I saved a file.txt in my home directory and add that in .bashrc : alias tiling='clear; cat tiling-gelp.txt' And I thought if I typed tiling in my terminal, the .txt would open, but not? idea?
user avatar
0 votes
0 answers
33 views

Unsupported certificate option "-t" at cpanel terminal

I'm creating a ssh key authentication in the cpanel terminal as recommended by cpanel, So I'll be able to integrate git version control: https://support.cpanel.net/hc/en-us/articles/4404218477207-How-...
user avatar
0 votes
0 answers
7 views

How to compress all subfolders to separate files in terminal?

Using Terminal in OSX. I have a directory that looks like this: Folder01 Subfolder 1 File1 File2 Subfolder 2 File1 File2 Folder02 Subfolder 1 File1 ...
user avatar
0 votes
0 answers
25 views

Hostname on Terminal changed to unknown user for a few minutes, then changed back

I was using Terminal on MacOS 11.6 last week and noticed my hostname (machine name?) had changed to Vincentudreault. No idea who/what that is, but when I looked at my machine name in Finder it was ...
user avatar
  • 405
0 votes
0 answers
38 views

Run command with sudo-permission for local user

I'm trying to run the command: vagrant up without being prompted for my password halfway through it. Attempt 1: Using sudo If I run it like this: sudo vagrant up, then I get this error: The ...
user avatar
  • 113
0 votes
0 answers
10 views

Wildcard (*) is not matching files in another user's folders in zsh on macOS [duplicate]

Logged in as user 1, I am trying to delete all files in a folder belong to user 2, using * as a wildcard. I know there is a file in the folder. % sudo ls /Users/Guest/Documents .localized file % ...
user avatar
  • 1
1 vote
1 answer
36 views

How to uninstall an widows update (patch) in silent mode using terminal or powershell?

Tried using wusa /uninstall /kb:4497464 /quiet, but from windows 10 they have deprecated the quiet flag. Is there any other ways to uninstall, please let me know.
user avatar
1 vote
1 answer
21 views

Change session name in screen

I am running multiple programs with different values for some variables in "screen". I want to change the name of the screen-sessions so I can identify them with "screen -ls" to ...
user avatar
0 votes
0 answers
16 views

macOS Terminal Dark Mode Profile

Is there a way to make my terminal always use the dark mode profile, no matter the state of the Dark Mode / Light Mode enabled? I much prefer the dark profile and don't want to turn my computer to ...
user avatar
  • 101
0 votes
0 answers
19 views

MAMP access MySQL from Command Line

I have MAMP installed on my Mac and I am trying to mysqldump a database. I am in the right folder "/applications/MAMP/library/bin" -- But when I use that command or any mysql command in ...
user avatar
0 votes
0 answers
23 views

Can't use macos terminal at all

Any command worked just fine but now what kind of command I type it says not found I think I messed PATH or something like that I'm new here please help
user avatar
0 votes
0 answers
25 views

Kali Linux - Opening terminal asks for sudo password, when password is provided the terminal closes

after following the instructions of how to enable Systemd in here: https://kubernetes.io/blog/2020/05/21/wsl-docker-kubernetes-on-the-windows-desktop/#minikube-enabling-systemd I started having the ...
user avatar
0 votes
1 answer
45 views

Syntax differences between Command Prompt and Terminal

I am studying the differences between the Windows command prompt syntax and the Ubuntu Terminal syntax. I've been messing around with cd, cd(space backslash), cd(backslash), cd/, cd /, cd.., cd .., ...
user avatar
0 votes
1 answer
96 views

What is the shell exactly when using Cmder on Windows?

I've just started using Cmder on Windows 7 and I understand that is a console emulator for Windows which gives a better experience than using cmd. However as I understand it the emulator needs to run ...
user avatar
0 votes
0 answers
39 views

How do I tell Mac Terminal which of two Zero/0 characters to use?

My question arises from my Mac Terminal's response to commands like cal and date. I use ZSH and UTF-8. As you know, most monospace fonts, including Apple's own SF Mono, offer at least two choices for ...
user avatar
  • 1
1 vote
1 answer
29 views

DTerm (macOS one-stroke quick terminal) > Issues with $PATH in ZSH

I’ve been using DTerm for a long time as a fast and convenient way to get to a “path aware” terminal prompt in macOS - but since upgrading to BigSur/ZSH, the $PATH in DTerm and Terminal.app/iTerm ...
user avatar
  • 423
1 vote
1 answer
22 views

Tmux Copy Mode: Show Current Line As Ascending Value From Top of Buffer

In this image I'm in tmux copy mode and at the very bottom of scroll the buffer. The line indicator on the top right shows 0/31827. How can I show the current line number as a value that ascends from ...
user avatar
0 votes
0 answers
86 views

How do I set APPLE_SSH_ADD_BEHAVIOR to the value “macos”? This is specific to macOS Monterey 12.1 and future versions

This is what I see in the terminal in macOS Monterey 12.1 Security warning message in terminal: And here is an cxcerpt from SSH add as seen in the Xcode man pages:
user avatar
0 votes
0 answers
59 views

How to change the font color in the title of iTerm 2?

Does anyone know what option should I put in .zshrc to change the font color in the title of iTerm from grey to white? I spent 24h and still couldn't find the right option because there are a lot of ...
user avatar
0 votes
0 answers
41 views

How can I connect ssh account over dropbear using only the terminal?

Can I connect ssh account over dropbear using only the terminal? If so, how?
user avatar
0 votes
1 answer
36 views

Ubuntu global keyboard shortcuts stop working when Terminal is active

I'm trying to get global shortcuts working everywhere for this GNOME extension: https://github.com/mzur/gnome-shell-wsmatrix/ I have set the shortcuts as follows: gsettings set org.gnome.desktop.wm....
user avatar
  • 101

1
2 3 4 5
93