≡ Menu


Linux / Unix: Find Out What tty I’m Using

What is a tty under Linux / UNIX? How do I find out what tty I'm on?
[click to continue…]

Unix / Linux: TCSH / CSH Shell Set Variable

How do I set environment variables using c shell (tcsh or csh) under FreeBSD UNIX or Linux operating systems? How do I save variable using csh shell under Unix like operating systems?
[click to continue…]

Linux Display Date And Time Of Login

How do I display user last login date and time under Linux operating systems?
[click to continue…]

How to: Run a shell script with nohup command

Q. I'd like to run a command or shell script immune to hangups, with output to a non-tty or file. How do I use nohup command to run script called ~/utils/backup upload?

A. nohup is a Unix command that is used to run another command while suppressing the action of the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. It is most often used to run commands in background as daemons. Output that would normally go to the terminal goes to a file called nohup.out if it has not already been redirected.

Run a script with nohup command

Type the command as follows to run a script called ~/utils/backup with 'upload' as argument to script:
$ nohup ~/utils/backup "upload" &