Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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, ...

0
votes
0answers
5 views

No value for $TERM and no -T specified Ubuntu LTS 18.04

I edited my .bashrc and .bash_profile files in the home directory for both the user and root. Everything works perfectly. About a week later, upon reboot I get this error, but everything still works ...
0
votes
1answer
12 views

How to only download files beginning with a certain range of numbers?

I'm trying to download files from a numbered list on a website. The list goes up to 6179 items, but I want to start the download from item 4852. I've tried the command: wget -m -np -c -A "*[4852-...
-1
votes
0answers
11 views

“/etc/apache2/sites-available/aiya1938.ls2.conf” E212: Can't open file for writing

virtual host creation time on putty above it shows error: "/etc/apache2/sites-available/aiya1938.ls2.conf" E212: Can't open file for writing. Virtual Host Creation write on putty sudo vi /etc/...
1
vote
1answer
31 views

Color scheme not affecting whitespace in Vim

I have been trying to add a color scheme to my .vimrc, but for whatever reason it's not wanting to highlight the whitespace to the right of my lines. Here's what my .vimrc looks like right now under ...
1
vote
2answers
59 views

Python program fails only if run (via ssh) from a mac terminal

I am trying to run a python program on a data processing (linux) cluster. The program runs fine if I ssh to the cluster from my linux desktop and start it but fails if I ssh to the cluster from my mac ...
0
votes
2answers
84 views

sudo !! equivalent on Windows cmd

I'm looking for a cmd.exe equivalent to Linux's sudo !! and other bang-commands such as !x, !?x, !!:p and !!* mentioned here.
0
votes
0answers
17 views

Custom scripts per Tilix profile terminal (Tab)

Where to find documentation or how to set up custom scripts. Basically i want to save Profile with 9 terminals(tabs) and configure custom commands to run on every terminal when Profile are loaded. The ...
0
votes
1answer
18 views

When I change working directory in a script and execute it, the working directory only changes to specified path while in the script

When I change working directory in a script and execute it, the working directory only changes to specified path while in the script. Here is my script: #!/bin/bash cd /media/hard/drive/partitionX/ ...
1
vote
1answer
19 views

How does one run an app from the terminal on a Chromebook?

On my Chromebook, I'm on the Dev channel, Chrome version 72.0.3609.3 on a ASUS C302C. I'm trying to run an app from the terminal and it's failing. My question is, how does one run an app from the ...
1
vote
2answers
49 views

What are the differences between multiplexing using tmux/screen and opening tabs in a terminal emulator?

I am trying to compare these two methods of running multiple shells/processes by measuring memory and cpu usage via htop. Can someone explain the differences in how each method functions, or if ...
0
votes
0answers
12 views

How to integrate Terminal into Dreamweaver?

I wanted to integrate Terminal into Dreamweaver just like Visual Studio Code but I couldn't find anything to help me set it up. It is possible? PS: I'm using Windows 10
1
vote
2answers
41 views

How to make “cd …” goup two directories?

So, currently on macOS I have aliases set up like this... alias ...='cd ../..' alias ....='cd ../../..' This allows me to go up multiple directories by typing in ... in my terminal. However, in my ...
0
votes
0answers
20 views

compiling with g++ is not working( compiling with clang is not allowed)

Originally gcc -o main main.cpp produce same error like main.cpp:10:20: fatal error: iostream: No such file or directory #include <iostream> But after install gcc with brew (brew install gcc) ...
12
votes
2answers
3k views

Use of / when using cd

I'm in my home directory on my mac: $ pwd /Users/lukas When I cd around, I do not (and can't) start the path with /: $ cd Documents/ /Users/lukas/Documents $ cd /Documents -bash: cd: /Documents: ...
0
votes
1answer
43 views

I am using Darwin OS on terminal but cannot use apt-get, yum command(only brew is usable)

I am using terminal on Darwin OS but cannot use apt-get and yum commands (only brew is usable). Sometime, I need to use apt-get (ex. to install linux essential header) But my terminal says command ...
0
votes
0answers
15 views

Possible to Access and Change Properties in BIOS from Command Line?

A BSOD resulted in an "Automatic Repair" loop at startup on my Windows 10. Access to Recovery Options has done little to resolve the problem. Fast boot is enabled and therefore peripherals do not ...
1
vote
1answer
18 views

How to maintain 'dirs -v' directory list from 'old' terminal when opening new one?

I've just been playing with dirs, pushd and popd. Adding/navigating directory with pushd , using dirs -v to show a vertical list of the directory 'stack', and popd to remove an entry from the list. ...
0
votes
1answer
55 views

How to terminate a python process similar to ctrl-c?

If I have several Terminal windows open, each running a python script, is there a way to terminate one by PID as if I pressed ctrl-c? With ctrl-c the script exits gracefully, but I tried various kill ...
0
votes
0answers
34 views

vim color scheme breaks when using tmux

I am using Ubuntu 18 LTS, gnome-terminal, with vim 8.0. When I am not using a color scheme, vim looks the same when launched inside or outside of tmux: However, when I use a color scheme (in this ...
0
votes
3answers
815 views

Use netcat to tell a remote Mac to run/open a file

I have very limited (almost no) knowledge of how netcat works other than I've managed to get one Mac mini to listen on port 13370 [using nc -l 13370] (for TCP commands?) and I have a MacBook that has ...
0
votes
1answer
58 views

What does each of the color palette entries change the color of?

I've been editing my color profile and experimenting with what each entry changes the color of. For reference this is what I'm talking about: I've looked everywhere for a list of what each color ...
1
vote
0answers
84 views

Find out which application you are currently on using terminal Ubuntu

Is there a way to know what application you are currently viewing through the terminal? e.g., if I am on Chrome the bar shows that I am on Chrome on the top left of Ubuntu. If I am currently on ...
1
vote
1answer
155 views

Mac-Os 10.14.1: Error getting value for key 'initializationClass' of extension 'Xcode.DVTKitDFRSupport.Initializer'

I have updated MacBook Pro to version 10.14.1 (Mojave). Since that moment I have the following error when I open the terminal: 2018-11-12 09:03:31.057 xcodebuild[8249:72140] [MT] DVTPlugInLoading: ...
2
votes
0answers
51 views

Can't erase folder

sudo rm -rf Doesn't work: rm: .../abc: Directory not empty which is. ~/Desktop/abc $ ls -anw total 0 drwxr-xrwx 3 501 20 96 Nov 4 20:30 . drwx------+ 11 501 20 352 Nov 11 23:34 .. ~/...
0
votes
1answer
65 views

Emacs visual-line-mode in -nw mode - is it possible?

Emacs have largely switched to visual-line-mode as default, but what do I use if I am working in -nw mode? Visual-line-mode is not working, and longlines-mode is branded as obsolete.
0
votes
1answer
23 views

Why do I change users when I login as root from terminal (fedora)? And why don't my changes to .bashrc & .bash_profile show up when I do?

Okay, so when I log in as root in my terminal using sudo, sudo -i, or su I get: [dash@localhost IN => ~]$ su Password [root@localhost IN => /home/dash]$ (notice the $ instead of #, this could be ...
0
votes
2answers
60 views

How can I use the linux terminal to access another file system on a network?

Suppose there are several computers networked together. I'd like to know how to use the command prompt in linux to remotely access the file system of another computer. Is this possible? Thanks!
2
votes
1answer
66 views

Find fails with “Too Many Arguments” in Shell Script, but not if run directly in a Terminal

I have a work station that stores images temporarily before compressed versions are uploaded to a server for safe keeping. I have an interest in deleting old files once a day at 3 AM using a script ...
4
votes
0answers
95 views

Paste in Nano is not working

I used Ctrl+Shift+6 to select a block of text in Nano, then cut it with Ctrl+K.  This successfully removed the text from my buffer. But when I do Ctrl+U to paste what I had cut, nothing is pasted. ...
1
vote
0answers
21 views

How to cancel a Ctrl-A in screen

Sometimes when I'm using my screen session I prematurely type Ctrl-A and then decide I want to remain in the current window and type something in the terminal, but anything I type next will be ...
1
vote
0answers
28 views

cygwin + tmux and multiple bash processes

I have cygwin and tmux installed. Every time I run a terminal I also run tmux and then fire up weechat. When I have to leave, I just close the terminal window and tmux keeps running in background... ...
0
votes
0answers
23 views

List main folders that contain non changed folders and files since a specific date macOS

I want to list the main folders in a directory that all their subfolders and files have a modified date older than a specific date. Any advice? I've tried this: find . -type d -newermt '7/15/09' from ...
1
vote
0answers
29 views

Android x86 unable to search and connect to mobile hotspot

I am using Android x86 Oreo rc1. Whenever I try to search for WiFi, it shows only WiFi networks, and mobile hotspots are not showing. My hotspot and PC WiFi both are at 2.5 GHz. My hotspot does not ...
0
votes
2answers
88 views

Background jobs in shell scripts

I have a shell script script.sh with a command cmd launched in background within, that is: #!/bin/bash … cmd & … If I open a terminal emulator (I've tried xfce4-terminal and gnome-terminal) and ...
1
vote
0answers
24 views

How do I change or remove an alias in Zsh in MacOS? [duplicate]

I am trying to install a build tool on my Mac called please; however it seems the word "please" is already aliased to "sudo" and I don't know where that alias is being set. I'm using Oh My Zsh which ...
0
votes
0answers
21 views

Can no longer scroll through output in GNOME Terminal

I posted a question about this before, but there was no resolution, and it's happened again. I'm using Ubuntu 16.04 Cinnamon. After using a terminal window I hadn't used in a few days (GNOME Terminal ...
0
votes
1answer
10 views

Make cmd-click on a file name in iTerm add that filename to the command

By default, iTerm lets you cmd-click filenames and urls to open them with the system's default app. I want to be able to change that so it adds the filename to the command I'm currently typing. This ...
-1
votes
1answer
35 views

What controls scrollback in a terminal window?

I'm using gnome-terminal with unlimited scrollback set On my local machine, and certain remote machines which I connect to via ssh, I can scrollback using both the scroll wheel on the mouse, and by ...
0
votes
0answers
64 views

Fastest way to search inside a text file?

I'd love to get some advice from people here. I'm trying to make a locally searchable simple/flat database that will just consist of long URLs from my site, and URLs I've shortened with bit.ly. The ...
0
votes
0answers
12 views

term capability name for Mac Command Key?

While going through 'infocmp -L1' which (per my understanding) lists all the capabilities/mapping of keys to their ascii codes.. I couldn't find any name that refers to the MAC 'command key' or 'apple ...
1
vote
0answers
66 views

Prevent Stretching of Terminal Background on MacOS

This may seem like a silly question, but I am modifying the appearance of the terminal application using the profiles menu on MacOS 10.14. I have a nice high resolution image that I have used as a ...
0
votes
0answers
44 views

Bash Output-Prompt

So i'm customizing my PS1-Bash-Prompt at the moment and found the iPython way of displaying in- and output pretty neat. As you can see, i have my PS1-Prompt configured to look (almost) like the ...
0
votes
1answer
31 views

How to Increase Windows 7 Terminal/Command Prompt FPS

Does anyone know how to increase the frames-per-second of the Windows 7 terminal? When I am scrolling in it, it is hard to read the text because it seems to skip down an entire line before re-...
1
vote
1answer
22 views

Accidentally added a character outside of a comment in sudo file on Mac, sudo not working any more

I made a mistake in terminal, and now every time I use sudo, I get the error message: sudo: unable to initialize PAM: Invalid argument I know what I messed up, which is adding a character outside of ...
0
votes
0answers
22 views

Use iterm2 or terminal app which can filter results, not just highlight results

Right now I am on MacOS, and I am using iterm2 as my terminal app. It's got some great features but one limitation is that when I use ctrl-f to search for something, it will highlight the results in ...
1
vote
4answers
120 views

How do I only use keyboard to control my computer for all everyday usages?

I have searched about this but I mainly get articles about broken mouse and temporary use of command line tools or GUI interface through keyboard. I only use Linux OS (Ubuntu and Debian). What I want ...
0
votes
1answer
55 views

Tmux in bash script executing too fast

I am trying to write a bash script that performs the following actions: open 8 tmux terminals each of the terminals connects in ssh to a remote server start a script X on 3 server, and when it's done ...
1
vote
3answers
39 views

OSX Command line Find Duplicate Filenames with different extensions

I've gone through all the similar questions + installed few command line utilities like duff but with no sucess. In my Images directory, I have images with same name but with different extensions (...
0
votes
0answers
39 views

Why does tmux require setting 256 color mode manually?

I just logged-in to a machine and realized that the colors changed inside tmux. It seems like even with TERM=xterm-256color and tput colors ⇒ 256 tmux switches to TERM=screen and tput colors ⇒ 8. ...
0
votes
0answers
65 views

Please make my terminal behave like a word processor because I'm old and jaded

How do I make the terminal input behave like a multi-line word processor that lets me select text, delete some text (no hex codes), move around, then only really send it over the wire when I press ...