Latest questions in Linux Administration

0 votes
0 answers

How do I get my bash script to assign unique usernames automatically to new users?

I'm a beginner writing a bash script ...READ MORE

3 days ago in Linux Administration by Korak
• 5,820 points
10 views
0 votes
0 answers

Can bash show a function's definition?

Is there a way to view a ...READ MORE

3 days ago in Linux Administration by Korak
• 5,820 points
9 views
0 votes
0 answers

if, elif, else statement issues in Bash

I can't seem to work out what ...READ MORE

3 days ago in Linux Administration by Korak
• 5,820 points
7 views
0 votes
0 answers

How to execute mongodb commands from bash shell?

I searched and found that one can ...READ MORE

3 days ago in Linux Administration by Korak
• 5,820 points
11 views
0 votes
0 answers

Bash script command result inside other variable to define prompt

I would like to define a prompt ...READ MORE

3 days ago in Linux Administration by Korak
• 5,820 points
8 views
0 votes
0 answers

Sqlplus login error when using bash variables: SP2-0306: Invalid option

I have a bash script that connects ...READ MORE

3 days ago in Linux Administration by Korak
• 5,820 points
7 views
0 votes
0 answers

zodiac sign calculator using bash script

#!/usr/bin/bash echo "This is a zodiac sign calculator" echo ...READ MORE

3 days ago in Linux Administration by Korak
• 5,820 points
5 views
0 votes
0 answers

How to list all background pids in bash

Either I am not able to phrase ...READ MORE

3 days ago in Linux Administration by Korak
• 5,820 points
5 views
0 votes
0 answers

How to detect the OS from a Bash script?

I would like to keep my .bashrc and .bash_login files in ...READ MORE

3 days ago in Linux Administration by Korak
• 5,820 points
3 views
0 votes
0 answers

How to detect the OS from a Bash script?

I would like to keep my .bashrc and .bash_login files in ...READ MORE

4 days ago in Linux Administration by Korak
• 5,820 points
10 views
0 votes
0 answers

git bash commands with python or Gitpyhon

So I have follwoing bash command which ...READ MORE

4 days ago in Linux Administration by Korak
• 5,820 points
5 views
0 votes
0 answers

Bash - cat command and errors

I was trying bash shell redirection. I ...READ MORE

4 days ago in Linux Administration by Korak
• 5,820 points
9 views
0 votes
0 answers

Convert PDF to DOC (Python/Bash)

I've saw some pages that allow user ...READ MORE

4 days ago in Linux Administration by Korak
• 5,820 points
8 views
0 votes
0 answers
0 votes
0 answers

Renaming multiples files with a bash loop

I need to rename 45 files, and ...READ MORE

4 days ago in Linux Administration by Korak
• 5,820 points
7 views
0 votes
0 answers

How do I run a program with commandline arguments using GDB within a Bash script?

When running a program on GDB, usually, ...READ MORE

4 days ago in Linux Administration by Korak
• 5,820 points
2 views
0 votes
0 answers

What is the preferred Bash shebang?

Is there any Bash shebang objectively better than the ...READ MORE

4 days ago in Linux Administration by Korak
• 5,820 points
6 views
0 votes
0 answers

How can I invoke both BASH and CSH shells in a same script

In the same script, I want to ...READ MORE

4 days ago in Linux Administration by Korak
• 5,820 points
7 views
0 votes
0 answers

Escaping Quotes in Chef Bash

This I need quotes in a cronjob ...READ MORE

4 days ago in Linux Administration by Korak
• 5,820 points
7 views
0 votes
1 answer

How do you copy and paste into Git Bash

Press Insert. Likewise, to duplicate from the window, ...READ MORE

5 days ago in Linux Administration by Rahul
• 3,380 points
17 views
0 votes
1 answer

bash : Bad Substitution

The default shell (/bin/sh) under Ubuntu focuses ...READ MORE

5 days ago in Linux Administration by Rahul
• 3,380 points
12 views
0 votes
1 answer

How to compile executable for Windows with GCC with Linux Subsystem?

Linux Subsystem fills in as a Linux-PC. ...READ MORE

5 days ago in Linux Administration by Rahul
• 3,380 points
11 views
0 votes
1 answer

What does '-gt' operator mean in Bash programming?

It's a math test. assist with testing ...READ MORE

5 days ago in Linux Administration by Rahul
• 3,380 points
7 views
0 votes
1 answer

Why do you need to put #!/bin/bash at the beginning of a script file?

It's a show so the *nix shell ...READ MORE

5 days ago in Linux Administration by Rahul
• 3,380 points
9 views
0 votes
0 answers

Install Heroku CLI on Mac with Bash Termimal

I'm trying to follow this guide and ...READ MORE

Jun 16 in Linux Administration by Rahul
• 3,380 points
8 views
0 votes
0 answers

How to send control+c from a bash script?

I'm starting a number of screens in ...READ MORE

Jun 16 in Linux Administration by Rahul
• 3,380 points
12 views
0 votes
1 answer

Is there a better way to run a command N times in bash?

In the event that your reach has ...READ MORE

Jun 16 in Linux Administration by Korak
• 5,820 points
14 views
0 votes
1 answer

Is there a better way to run a command N times in bash?

In the event that your reach has ...READ MORE

Jun 13 in Linux Administration by Korak
• 5,820 points
10 views
0 votes
1 answer

Are there any man pages that summarize bash scripting?

Regardless of whether man pages are exceptionally ...READ MORE

Jun 13 in Linux Administration by Korak
• 5,820 points
7 views
0 votes
1 answer

df -h if freespace equals then | bash

Try this out: destination="$HOME/Desktop/sandbox" freespace="$(df -h / | tail ...READ MORE

Jun 13 in Linux Administration by Korak
• 5,820 points
8 views
0 votes
1 answer

How to keep quotes in Bash arguments?

utilizing "$@" will substitute the contentions as ...READ MORE

Jun 13 in Linux Administration by Korak
• 5,820 points
12 views
0 votes
1 answer

Compare $1 with another string in bash

The explanation $1 doesn't match is on ...READ MORE

Jun 13 in Linux Administration by Korak
• 5,820 points
9 views
0 votes
0 answers

Compare $1 with another string in bash

I've spent 2 hours with an if statement, that ...READ MORE

Jun 9 in Linux Administration by Rahul
• 3,380 points
6 views
0 votes
0 answers

How to add man and zip to "git bash" installation on Windows

I am using git bash on Windows - that ...READ MORE

Jun 9 in Linux Administration by Rahul
• 3,380 points
9 views
0 votes
0 answers

How to split a string into an array in Bash?

In a Bash script, I would like ...READ MORE

Jun 9 in Linux Administration by Rahul
• 3,380 points
9 views
0 votes
1 answer

What does -f mean in bash

Luckily, the Bash Reference Manual is accessible ...READ MORE

Jun 10 in Linux Administration by Korak
• 5,820 points
6 views
0 votes
1 answer

Difference between single and double quotes in Bash

Single statements will not insert anything, yet ...READ MORE

Jun 10 in Linux Administration by Korak
• 5,820 points
7 views
0 votes
1 answer

Difference between single and double quotes in Bash

Single statements will not add anything, however ...READ MORE

Jun 7 in Linux Administration by Korak
• 5,820 points
13 views
0 votes
1 answer

"sed" command in bash

sed is the Stream EDitor. It can ...READ MORE

Jun 7 in Linux Administration by Korak
• 5,820 points
16 views
0 votes
1 answer

How do I check if a directory exists in a Bash shell script?

To check if a directory exists in ...READ MORE

Jun 7 in Linux Administration by Korak
• 5,820 points
17 views
0 votes
1 answer

bash terminal on kubuntu

You are actually using a bash terminal. ...READ MORE

Jun 7 in Linux Administration by Korak
• 5,820 points
9 views
0 votes
0 answers

How to add man and zip to "git bash" installation on Windows

I am using git bash on Windows - that ...READ MORE

Jun 7 in Linux Administration by Rahul
• 3,380 points
9 views
0 votes
0 answers

Display an ASCII table of characters 32 to 112 with bash

I want to know how to display ...READ MORE

Jun 3 in Linux Administration by Rahul
• 3,380 points
21 views
0 votes
0 answers

How to set environment variables for bash from within powershell?

Using powershell how do I set the environment variables (here, particularly "ApiSecret") so ...READ MORE

Jun 3 in Linux Administration by Rahul
• 3,380 points
27 views
0 votes
0 answers

How is CTRL-R (reverse-i-search) is implemented in bash terminal?

Example of the reverse search: (reverse-i-search)`grep': git log ...READ MORE

Jun 3 in Linux Administration by Rahul
• 3,380 points
15 views
0 votes
0 answers

Bash script to automate a VPN from vpnbook.com

I wrote a bash script that reads ...READ MORE

May 27 in Linux Administration by Rahul
• 3,380 points
65 views
0 votes
1 answer

bash: telnet: command not found

Indeed you would have to introduce telnet ...READ MORE

May 27 in Linux Administration by Korak
• 5,820 points
32 views
0 votes
1 answer

bashrc not found on MacOS Monterey version 12.0

Assuming that you believe your content should ...READ MORE

May 27 in Linux Administration by Korak
• 5,820 points
70 views
0 votes
1 answer

Persistant "bash: /home/XXX/.rvm/scripts/rvm: No such file or directory" in terminal

Introduce RVM: gpg - - keyserver hkp://keys.gnupg.net - ...READ MORE

May 27 in Linux Administration by Korak
• 5,820 points
30 views