Questions tagged [shell]
A shell is software that lets users interact with the operating system, usually by typing at a command-line.
4,077
questions
0
votes
0
answers
31
views
How do I determine which line has too many arguments within the script itself?
When I run the script I get the following errors:
./A_High_Stakes_investigations.sh: line 11: [: too many arguments
./A_High_Stakes_investigations.sh: line 11: [: too many arguments
./...
0
votes
1
answer
21
views
The definition and application of the word 'Shell' in computing
I have been researching and ended up going down a rabbit hole. My problem starts when I was reading this article: https://learn.microsoft.com/en-us/windows/application-management/svchost-service-...
0
votes
1
answer
38
views
exit code segment causes Bash prompt to freak out
My Bash prompt (based on mike kasberg's) generally works fine. But when I get an error code, and then write over to the next line, no newline is generated, so the text goes back over my previous ...
0
votes
0
answers
13
views
Keyboard doesn't work correctly when booting the linux kernel with single mode from CFE bootloader using UART
I've been encountering a specific and weird bug that i honestly can't seem to find any solution for, i've been toying around with this blu ray player and found a uart port, i wire it to my pi pico ...
3
votes
2
answers
145
views
How to disable row highlighting on iterm and oh-my-zsh?
I just setup the new Macbook today and start to have the weird highlighting with the blue frame on the row when i use my mouse to select a particular row on the terminal. The other row will be faded a ...
1
vote
1
answer
64
views
store available disks for LVM in array
I am using lsblk command to get the device names on linux servers. However, I want to find the command that will help me scan the devices and store the results in an array only for devices that are ...
0
votes
0
answers
14
views
Run a command, immediately return to the shell prompt, do not return a message when the command is finished [duplicate]
brew install gh > /dev/null 2>&1 &
This returns to the shell immediately, but prints [1] + done brew install gh > /dev/null 2>&1 when the command finishes.
brew install ...
0
votes
0
answers
35
views
Postfix being restarted
I have a script that submits form data to my email that works on local host, but not on the server.
main.cf:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian ...
0
votes
1
answer
48
views
ChromeOS - after update, segmentation fault for all shell commands
My current version:
That's what I'm getting when I type shell in ChromeOS terminal (Ctrl + Alt +T):
I also noticed I'm not able to use any command, for example:
What can I do to fix that? Without ...
0
votes
1
answer
112
views
Shell script gives "command not found" but command works in terminal
I'm using the beets cli music library management software on my Mac. It works fine in the the terminal - commands like beet import ~/path/to/folder work fine and which beet outputs /opt/local/bin/beet....
0
votes
1
answer
138
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 ...
0
votes
1
answer
61
views
Execute a remote shell script from within screen via SSH and view stdout in one command
Couldn't find an answer for my particular use-case in the hours I've unsuccessfully researched this.
I have a script located on machine B. I am aiming to run a command on machine A that establishes an ...
0
votes
0
answers
14
views
"find" command does not find all files from root unless folder is specified [duplicate]
I am trying to find the files that are named setenv.sh on this machine, I am logged in as root and am searching from the '/' using the following syntax and receiving the output:
# First
[root@...
0
votes
0
answers
57
views
Connect to PEAP wifi network on mac with a shell script
I am making a shell script for my mac and part of it requires connecting to my school's wifi network.
I have tried both of the following commands and while the settings wifi tab says that the computer ...
0
votes
0
answers
91
views
VLC: Split Video onto Two Displays with Command
I need to display a video on two screens with VLC by command, in a non-manual way on my Raspberry PI.
The two screens are each connected by a HDMI cable. The video files have the 3840 * 1080 ...