Skip to main content

All Questions

Tagged with
0 votes
0 answers
11 views

Terminal Opened in Ubuntu but command prompt not appear

When I open my terminal in Ubuntu, it opens, but I have no command prompt! I can't write any commands. I tried to reset it, but nothing happened. The terminal stays like that, so what should I do? The ...
Muhammad Tawil's user avatar
0 votes
1 answer
32 views

Does inline assigned variable followed by shell built-ins accessible by the subsequent commands?

I am trying to understand how posix shell behave when command is in the form, # variable assignment followed by a shell built-ins. var=value shell_builtins; in scenario like this, posix manual says, ...
nabik's user avatar
  • 25
0 votes
0 answers
23 views

Git output into a document while keeping font colors?

I am trying to take the output of git log --graph --online --all --decorate and put it into a Word Document or PDF. I want to keep the font colors, for obvious reasons since a git commit tree looks ...
Yugene's user avatar
  • 19
0 votes
0 answers
23 views

Passing variable from shell script to another script using expect

I'm trying to write a script to be able to pass a variable using script_a.sh which extract a value from the database to pass another script script_b.sh which uses this value as part of the input for ...
Toonzen's user avatar
0 votes
1 answer
29 views

macbook terminal tab complete python module

On my old MacBookPro, I was able to tab-complete python modules on Terminal... but now, as soon as theres a "dot" in the path, Terminal can no longer tab-complete (so basically only tab-...
sliq's user avatar
  • 1
0 votes
1 answer
54 views

bash script - check number of input arguments based on one input argument value

I have to create a bash script for which i need to give input arguments based on action type: insert/update. In case of insert the bash script will need 3 input arguments but in case of update are ...
Mathew Linton's user avatar
0 votes
0 answers
40 views

PowerShell Script for renaming multiple files with a common phrase in multiple folders

I have files within folders on a Windows 10 system that are template files. These files are all named xxxxxx[Vendor Name]. Is there a PowerShell script i can write that can search for files with "...
AM80's user avatar
  • 1
0 votes
0 answers
60 views

How to get 2 linux process ids created on a single line command using shell script

I have a command to start tcpdump on a timeout. So I have a shell script written to start this process and give the executor of the shell script the process ids created in the shell script. My shell ...
Yogi's user avatar
  • 1,579
0 votes
2 answers
47 views

How do I run my powershell script from any directory? (Like in $profile but in its own .ps1 file)

My .ps1 script is just a simple multi-argument function, but I want to run this function anywhere like functions in $PROFILE but for tidiness and organisation's sake, I want it to be its own file. If ...
ZΞN's user avatar
  • 3
0 votes
0 answers
70 views

Removed Python2.7 executable and now I can't uninstall it

I have Ubuntu 22.04.4lts and I installed python3.11.7 and python2.7.18. I tried to uninstall python2.7 with sudo apt remove python2 python2-pip but I got this message: E: Unable to locate package ...
Valeria Aceituno Salinas's user avatar
-1 votes
2 answers
48 views

Find command in system path from Java on macOS

From Java I need to execute a user-installed command (let’s call it abc) on macOS. However when running Runtime.getRuntime().exec(new String[] {"abc", "--argument"}); it cannot be ...
Hans's user avatar
  • 2,442
0 votes
1 answer
38 views

Why does command substitution work in these ways?

In my .bashrc file I have the following: export USER_HOME1='/home/$(id -nu)/' export USER_HOME2='/home/'$(id -nu)'/' export USER_HOME3="/home/$(id -nu)/" export USER_HOME4="/home/\$(id ...
tangjm's user avatar
  • 3
0 votes
1 answer
97 views

I can't use command "start" in git bash

When I type "start" to open up a .txt file, it returns /usr/bin/start: line 8: No such file or directory I guess it returns my whole path but idk. I have tried adding C:\Windows\System32 to ...
Enrique Milo's user avatar
0 votes
1 answer
45 views

How to escape a command line for logging?

I want to echo a command that a script is running for debugging purposes. So, my script has a line that runs a command: negate() { echo \( "$1" -negate \) } NEGATED_IMAGE="$(negate '...
minseong's user avatar
  • 11.7k
0 votes
1 answer
54 views

Exploring json with command lines [closed]

Can someone helps me finding out a solution for this problem with a command line? Here's my Json file : { "type": "record", "name": "ShelfEx »position, "...
user23581877's user avatar

15 30 50 per page
1
2 3 4 5
172