Questions tagged [shell]

A shell is terminology for a command-line interpreter most commonly used with Unix-like operating systems, but also used to interact with GUI-based operating systems in a more granular fashion. Not only does it allows the user to run programs from a text interface, but frequently offers basic programming features such as variables, substitution, output redirection, and wildcards.

A shell is terminology for a command-line interpreter most commonly used with Unix-like operating systems, but also used to interact with GUI-based operating systems in a more granular fashion.

Not only does it allows the user to run programs from a text interface, but frequently offers basic programming features such as variables, substitution, output redirection, and wildcards.

The name was first used by Unix operating system for an interpreter used for command prompt, but currently the term shell refers to BASH(Bourne Again SHell) and other command prompt interpreters too.

1348 questions
-1
votes
2 answers

Any way to program a system which automatically restores home / sql database

I have made two shell scripts Script 1: It does all Home directory backups with name username_home_date.tar.gz Script 2: It does SQL backups of all sites every 3 hrs. username_databse_date.sql.gz Now currently if I want to restore the site, I…
John
-1
votes
1 answer

Extract Pages from Various PDF Files into New PDF File

From a.pdf, I would like pages 2 and 5 b.pdf, pages 3 and 4 c.pdf, pages 7, 8, and 9 copied into a new PDF file. All input pdf files are ten pages long. I'm using bash, and plan to make many documents like this (with different input files and…
-1
votes
1 answer

why shell discard my string of variable

[root@es01 ~]# redis-cli -h IP_ADDRESS -p 6380 -a admin info 2>/dev/null|grep config_file|cut -d: -f2 /opt/redis/7.0.5/cluster/redis-6380.conf [root@es01 ~]# cat $(redis-cli -h IP_ADDRESS -p 6380 -a admin info 2>/dev/null|grep config_file|cut -d:…
redliquid
  • 1
  • 1
-1
votes
1 answer

How to execute remote commands on linux and update return value?

As part of automation in gitlab ci. I am running a terraform template and creating a linux machine. After that, I need to run few commands on the remote machine. I am running those using the ssh remote command. But at the end, even if it is failure,…
Kalel
  • 134
  • 1
  • 4
  • 16
-2
votes
1 answer

How to use asterisk in a shell program

I want to use Asterisk in a shell Linux program more or less like this : asterisk -r && console dial 101 How can I do that ? Thank you.
-2
votes
1 answer

Centos - terminal creates directories/files with no owner/group?

I'm very new to server admin. I'm having an issue whereby any file or folder I create via the terminal on WHM (Centos 7.6) results in a file/folder with 0/0 user and group stat. Example command: mkdir mydir This is confirmed in Filezilla, and…
Mitya
  • 99
  • 7
-2
votes
1 answer

converting bat to shell script

I have source of batch files which i need to convert to into shell script,i have do converted most of the code but got stuck with the following code because i could'nt find any shell equivalents for it online so anyone help me in converting the…
-2
votes
1 answer

How to output one number few times with spaces in one line via bash

How to output one number few times with spaces in one line via bash I have a=5 b=10 I should output 5 times number 10 with using of variables and with spaces Also, i should capture this in variable For example, i have to receive this 10 10 10 10…
Piduna
  • 541
  • 4
  • 12
  • 25
-2
votes
1 answer

Freebsd 11 custom installer memstick with packages

I use freebsd 11 memstick installer image always but need some packages if I install freebsd 11 then I should install some packages ( phpmyadmin, php7, nginx, mysql, nano) and enabled root ssh vb process I dont want reagain this process Can I…
-2
votes
1 answer

sed search and add some sting

======KVM 虚拟化手册====== =====简介===== =====安装和配置kvm虚拟化===== ====检查是否支持KVM==== ====安装kvm虚拟化平台==== ====配置nested virtualization==== ==== 配置网络==== ====重启系统并检查相关配置==== =====virsh创建 & 安装虚拟机===== ====通过VNC进行安装==== =====REFERENCE===== The lines which begin…
mrco
  • 179
  • 6
-2
votes
2 answers

Shell script to enumerate the (already existing) LDAP group called "VPN Users"

I am new to LDAP and learning about the ldapsearch and ldap in general. Would like to write a shell script that enumerate the (already existing) LDAP group "VPN Users", then get all user "samaccountname" (e.g.joe.smith). Can someone please help?…
Irina I
  • 1
  • 2
-2
votes
1 answer

Sed replace path for directory from special file with delimirers slash

i should change on parameter to other from template file in linux. sed -e "s/\${dir}//" /etc/nginx/site.conf But it does not work. How to resolve it ? May be there are other ways, how to…
Piduna
  • 1
  • 3
-2
votes
2 answers

Ubuntu 14 find what is consuming disk space

Have any command to see what is consuming disk space on ubuntu 14? My Ubuntu server has left only 70MB of disk space thank's
japalow
  • 9
  • 1
-2
votes
1 answer

Execution "df" command on AIX with the bash

it's very strange that when I am executing df command on AIX with bash like  bash -c "df /" I suppose it will be executed like on Linux, but still the result is same like korn shell. Please give me explanation to this. How can I somehow to be sure…
-2
votes
1 answer

Script to search bots from log file

I have a little log-file, where i should find the bots. File: Mon, 22 Aug 2016 13:15:39 +0200|178.57.66.225|fxsciaqulmlk| - |user logged in| - Mon, 22 Aug 2016 13:15:39 +0200|178.57.66.225|fxsciaqulmlk| - |user changed password| - Mon, 22 Aug 2016…