Top "Shell" questions

The term 'shell' refers to a general class of text-based interactive command interpreters most often associated with the Unix & Linux operating systems.

How can I kill a process by name instead of PID?

Sometimes when I try to start Firefox it says "a Firefox process is already running". So I have to do …

linux bash shell
What's the difference between .bashrc, .bash_profile, and .environment?

I've used a number of different *nix-based systems of the years, and it seems like every flavor of Bash I …

shell environment bash
How to append one file to another in Linux from the shell?

I have two files: file1 and file2. How do I append the contents of file2 to file1 so that contents …

linux shell file ubuntu append
Pseudo-terminal will not be allocated because stdin is not a terminal

I am trying to write a shell script that creates some directories on a remote server and then uses scp …

linux bash shell ssh
Compare a string using sh shell

I am using SH shell and I am trying to compare a string with a variable's value but the if …

shell unix sh
Find all storage devices attached to a Linux machine

I have a need to find all of the writable storage devices attached to a given machine, whether or not …

linux bash shell
How do I know the script file name in a Bash script?

How can I determine the name of the Bash script file inside the script itself? Like if my script is …

linux bash shell scripting
How to kill zombie process

I launched my program in the foreground (a daemon program), and then I killed it with kill -9, but I …

linux shell ubuntu debian zombie-process
How do I put an already-running process under nohup?

I have a process that is already running for a long time and don't want to end it. How do …

shell nohup
How to check if a file contains a specific string using Bash

I want to check if a file contains a specific string or not in bash. I used this script, but …

bash shell grep