$ bigjob
^Z
[1]+ Stopped bigjob
$ jobs
[1]+ Stopped bigjob
$ kill %1
[1]+ Stopped bigjob
$ RETURN
[1]+ Killed bigjob
$ kill -KILL %1
$ bigjob
^Z
[1]+ Stopped bigjob
$ jobs
[1]+ Stopped bigjob
$ kill %1
[1]+ Stopped bigjob
$ RETURN
[1]+ Killed bigjob
$ kill -KILL %1
Linux supports programs, called emulators, that run code intended for other operating systems. By using emulators you can run some DOS, Windows, and Macintosh programs under Linux. Wine (www.winehq.com) is an open-source implementation of the Windows API on top of X and UNIX/Linux; QEMU (fabrice.bellard.free.fr/qemu) is a CPU-only emulator that executes x86 Linux binaries on non-x86 Linux systems.
GNU, which stands for Gnu's Not UNIX, is the name for the complete UNIX-compatible software system which I am writing so that I can give it away free to everyone who can use it.
Variable name | Stored information |
---|---|
DISPLAY | used by the X Window system to identify the display server |
DOMAIN | domain name |
EDITOR | stores your favorite line editor |
HISTSIZE | size of the shell history file in number of lines |
HOME | path to your home directory |
HOSTNAME | local host name |
INPUTRC | location of definition file for input devices such as keyboard |
LANG | preferred language |
LD_LIBRARY_PATH | paths to search for libraries |
LOGNAME | login name |
location of your incoming mail folder | |
MANPATH | paths to search for man pages |
OS | string describing the operating system |
OSTYPE | more information about version etc. |
PAGER | used by programs like man which need to know what to do in case output is more than one terminal window. |
PATH | search paths for commands |
PS1 | primary prompt |
PS2 | secondary prompt |
PWD | present working directory |
SHELL | current shell |
TERM | terminal type |
UID | user ID |
USER(NAME) | user name |
VISUAL | your favorite full-screen editor |
XENVIRONMENT | location of your personal settings for X behavior |
XFILESEARCHPATH | paths to search for graphical libraries |
To find out which shell you are currently using, type the following command:
echo $SHELL
The result of that command will tell you what your current shell is and may look something like:
/bin/bash
That would mean that you are using the bash shell. On a side note, you would also realise that this shell resides in the bin directory.
We use the -p flag to tell cp to preserve the permissions and ownership of the files involved. So if we wanted to copy a folder recursively preserving permissions and ownership of the folder and the files contained in it, we would use the following command (preferably as root):
cp -R -p /source/folder/ /destination/folder/
All the files in the source folder would be copied to the destination folder and the permissions and owners would be preserved.
If we had a single file it would be similar:
cp -p /path/to/file-a /path/to/file-b
To check that the owner and permissions have been preserved, we can simply use:
ls -altp /destination/folder/
The result of the above command would show us the permissions that the files in the destination folder have.
insert_job:echoJob
machine:unixMachine
owner:username
command:echo “Hello this is command job”
jil < echoJob.jil
sendevent –E FORCE_STARTJOB -J <
job_name
>
sendevent -E STARTJOB -J <
job_name
>
sendevent -E OFF_ICE -J <
job_name
>
sendevent -E ON_ICE -J <
job_name
>
sendevent -E KILLJOB –J "Job Name Here"