Linux / UNIX Tech Support Forum
This is a discussion on UNIX / Linux echo command examples within the Getting started tutorials forums, part of the Linux Getting Started category; Here are some examples you may find interesting: Display message welcome on screen Code: echo 'Welcome' Write message File deleted ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
|||
|
echo is a very powerful tool
#env this command will show HOSTNAME=viren.com TERM=xterm SHELL=/bin/bash HISTSIZE=1000 KDE_NO_IPV6=1 SSH_CLIENT=10.16.5.139 1885 22 SSH_TTY=/dev/pts/0 USER=root LS_COLORS=no=00:fi=00:di=00;34:ln=00;36 KDEDIR=/usr MAIL=/var/spool/mail/root PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin INPUTRC=/etc/inputrc PWD=/root LANG=en_US.UTF-8 KDE_IS_PRELINKED=1 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SHLVL=1 HOME=/root LOGNAME=root SSH_CONNECTION=172.16.5.139 1885 172.16.5.235 22 LESSOPEN=|/usr/bin/lesspipe.sh %s G_BROKEN_FILENAMES=1 _=/bin/env and then understand what echo can do like #echo $PATH #echo $HOSTNAME #echo $HISTSIZE |
|
|||
|
i hv read abt the q parameter used with echo, as:
echo -e "\033[2q" it turns on the num lock key's LED, but it wont effect the num keypad. i wanna know is it only for the LEDs or it actually works? (same for 0q, 1q, 3q) |
|
||||
|
It will displays the exit status of a command, see
__________________
Vivek Gite Linux Evangelist |
| The Following User Says Thank You to nixcraft For This Useful Post: | ||
eman samir (15-11-2009)
| ||
|
|||
|
Quote:
|
![]() |
| Tags |
| bash , commands , echo , linux , shell script , unix |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unix ls command | raj | Getting started tutorials | 2 | 20-08-2009 03:44 PM |
| Unix route command view | jerry | Solaris/OpenSolaris | 4 | 16-04-2009 05:40 PM |
| unix find out ram usage command | charvi | Solaris/OpenSolaris | 4 | 10-04-2008 02:22 AM |
| UNIX and Linux command for DNS | chiku | Getting started tutorials | 1 | 29-04-2007 04:36 PM |
| displaying the executed command then echo the status | warren | Shell scripting | 4 | 29-11-2006 01:56 AM |