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.

1367 questions
-2
votes
4 answers

Need to get server bandwidth usage up to the moment (in bytes)

I am writing a CRON/PHP script that will check the server stats every 5 minutes (CPU/RAM/SSD) and log the info to the database. This way I will be able to see server usage over different periods of time. I am curious also to see how much bandwidth…
Gajus
  • 871
-2
votes
1 answer

shell script doesn't run correctly in cron

I want to call a shell script I wrote from a cron. The shell script uses the program Linkchecker. If I run the shell script from the terminal it works just fine. However, when cron runs I get the following errors: File…
rich
  • 1
-2
votes
3 answers

Making a shell server

I am planning to make a public shell server. What things should I modify to secure my server. Please tell me general things to check
-2
votes
1 answer

PuTTY - Server Unexpectedly Closed Network Connection

I have two servers that I have been able to connect fine as s1.website.com and s2.website.com I connected to s1.website.com earlier today without any issues, however, when I connected to s2.website.com it gave me the "Server Unexpectedly Closed…
Austin
  • 15
-2
votes
2 answers

How do I paste a list of files to a command?

Let's say I have a newline-separated list of file paths from a previous command that I can copy to clipboard. What's the easiest way to paste this list to feed it into another command in a shell? Preferably, so that I can still edit the list before…
-3
votes
1 answer

bash ftp change directory on remote server

I have a shell script that FTPs some non-sensitive data to a remote server. However, I would like to set the remote path rather than just use the remote FTP user's default path. I have searched for ages but can't find any way of doing this which…
Ally
  • 97
  • 2
-3
votes
1 answer

Function, that check previous command

i want to write fucntion, that check previous command. Succes or not. My code: #!/bin/bash function check_previous { RESULT=$? if [ $RESULT -eq 0 ]; then echo "success" else echo "failed" fi } echo "wwe" check_previous ls - l check_previous Yes, it…
-3
votes
1 answer

Run Windows Explorer on remote system from its cygwin shell through SSH

Please consider my problem :) 1) I Have a Windows 7 - x64 system with cygwin installed and SSHD running. 2) From another Windows machine , from futty, SSH to the above machine. 3) Command "TaskKill /IM explorer.exe /F" to kill explorer. Success ! 4)…
Rx3
  • 3
-3
votes
1 answer

How Can I Check That I Have Successfully Run The Shell Scripts In EC2?

I'm very new to Ec2. And I wrote a set of shell scripts and run over ec2 instance : ec2-run-instances ami-82fa58eb -d Setup.sh I just get the following output : RESERVATION r-ed405088 980691203742 default INSTANCE i-7eb12d06 ami-82fa58eb pending 0…
karti
  • 3
-3
votes
1 answer

I want to make a sell script to input text into a command in debian

I am sorry if I am having trouble explaining, here is my issue, I want to make a basic shell bash script say x.sh and I want to run command change htpasswd -b -c /etc/squid/squid_passwd root pass Where the bash script will ask input username: and I…
Nova
  • 5
-3
votes
1 answer

Nested directories file restore

I recently took backup of one of my server's drive on AWS using one of the software and now at the time of restoring it i found out it took too long to restore as its having billions of files to restore. I tried to restore it from AWS itself but my…
root
  • 39
-4
votes
2 answers

how to compress a files inside a shell script file?

I have seen a .sh file on execution in terminal it extracts some jar files inside the sh file, how to create such sh files? i could not open that sh file in normal gedit to check the content. Is there any way to do that?
-4
votes
1 answer

IPv6 Address Switch

I have IPv6 addresses on a Linux based server. How can I switch the current address to a new one? Is there a way to do it using shell commands? How about using Python? Thanks.
-4
votes
2 answers

Shortcut for: | less [ENTER]

I often type | less [ENTER] . I would like to optimize this. Environment: Ubuntu 20.04 This needs to work for terminals running in the browser, too. Any idea how I could enter above string with less effort? It would be super cool, if the CapsLock…
guettli
  • 3,991
-5
votes
1 answer

How to password protect a file?

I have a script called 'Linux.sh'. This script should be executed by every one . it should prompt for password when some one edit it . I have tried by using ' vi -x linux.sh ' to password protect the file but I am not able to execute it. Is there…
1 2 3
…
91
92