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
-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
  • 7
-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…
ykaganovich
  • 149
  • 3
  • 8
-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…
Valeriu
  • 1
  • 2
-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
  • 2
-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 …
karti
  • 3
  • 1
-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
  • 2
  • 8
-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?
Pradyumna Sagar
  • 103
  • 1
  • 2
-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 key…
guettli
  • 3,591
  • 17
  • 72
  • 123
-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…
KALAI SELVAN
  • 119
  • 4
-5
votes
1 answer

How to update SASS for the whole of a VPS automatically?

I have a VPS with SASS, and I have configured it correctly. I have multiple users on my server, and they don't have SSL access to the server. Some of them use SASS, and I don't want to have to update their files to CSS files whenever they update…
Tom Doyle
  • 1
  • 1
-6
votes
1 answer

How to enable ssh access without public/private keys

I want to access my server via terminal like this: ssh username@host.com Password: (enters password) ... I have access to cpanel for this server. There is a section called "SSH access" where I can create public/private keys. I don't know how to use…
1 2 3
89
90