10-13-2003
vi editor not displaying?
Hi guys,
I have changed some path in the vi .profile and then i shutdown the system and when i reboot it i was unable to use
vi.
It is showing vi not found.Likewise for few other commands also.
How to solve this problem and make vi work again.
Plz. do provide the answer it is Urgent??
thanx,
m.ananthu
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
When I type date..I get the date, time ..etc displayed
...but can someone help me to display yesterdays date... some script to display back dates.
Thanks in advance
Minaz (7 Replies)
Discussion started by: minazk
7 Replies
2. UNIX for Dummies Questions & Answers
I would like to see what a command is doing. For example, say I move 10 files using mv * somedir. Can I use some other command to see a verification of each files movement. Like:
file1 moved to somedir
file2 moved to somedir
...
but, i'd to have this capability for all commands. it seems... (1 Reply)
Discussion started by: quantumechanix
1 Replies
3. UNIX for Dummies Questions & Answers
hi,
how can display year parameter also while listing files from a directory?it displyas only if last acces sis more than 1 yr i guess.can it be dispalyed using some option or some method?
thanks and regards
vivek.s (2 Replies)
Discussion started by: vivekshankar
2 Replies
4. Solaris
Hi,
Does anyone know what i need to do to get the 'é' character to display on a Solaris 9 server. When i try to cut and paste it onto some of my machines via telnet it displays an 'i' but other machines with the same OS version are ok. It also doesn't like Japanese Characters.
Any help would be... (0 Replies)
Discussion started by: mwfisher
0 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question.
How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'?
As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies
6. Shell Programming and Scripting
Hi All,
I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by
set EDITOR=vi it does not open a vi editor , rather it do as below.....
/////////////////////////////////////////////////////
$ set... (6 Replies)
Discussion started by: aarora_98
6 Replies
7. Solaris
Epic Editor was not able to obtain a license for your use. Feature Epic Editor :License server is down (1 Reply)
Discussion started by: durgaprasadr13
1 Replies
8. UNIX for Dummies Questions & Answers
I'm unsure about the topic title, but this is what I want to do.
I have a directory, named /opt/extra and and I want it to be displayed when I issue df command. Just by using df only, not df /opt/extra.
OS: Solaris 10
Current df output
root@jebat10 # df -k
Filesystem kbytes ... (3 Replies)
Discussion started by: Olli.Lang
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Is there a way to display the stdout of a script using vi editor without writing the stdout to a file.
I have a script (format.sh) which reads a file and displays it in a special format.
i want to see this displayed text using vi editor?
currently i am doing:
format.sh myfile> out.txt... (1 Reply)
Discussion started by: yakari
1 Replies
10. Shell Programming and Scripting
Hi I am kind of stuck
I need help with printing only the names of the folder in the format
LAST NAME, F
so last name and the first character of first name
using ls -l command in the /home directory
currently they are in the format firstname.lastname
please advice (4 Replies)
Discussion started by: classic
4 Replies
LEARN ABOUT REDHAT
reboot
HALT(8) Linux System Administrator's Manual HALT(8)
NAME
halt, reboot, poweroff - stop the system.
SYNOPSIS
/sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] [-h]
/sbin/reboot [-n] [-w] [-d] [-f] [-i]
/sbin/poweroff [-n] [-w] [-d] [-f] [-i] [-h]
DESCRIPTION
Halt notes that the system is being brought down in the file /var/log/wtmp, and then either tells the kernel to halt, reboot or poweroff
the system.
If halt or reboot is called when the system is not in runlevel 0 or 6, in other words when it's running normally, shutdown will be invoked
instead (with the -h or -r flag). For more info see the shutdown(8) manpage.
The rest of this manpage describes the behaviour in runlevels 0 and 6, that is when the systems shutdown scripts are being run.
OPTIONS
-n Don't sync before reboot or halt.
-w Don't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file).
-d Don't write the wtmp record. The -n flag implies -d.
-f Force halt or reboot, don't call shutdown(8).
-i Shut down all network interfaces just before halt or reboot.
-h Put all harddrives on the system in standby mode just before halt or poweroff.
-p When halting the system, do a poweroff. This is the default when halt is called as poweroff.
DIAGNOSTICS
If you're not the superuser, you will get the message `must be superuser'.
NOTES
Under older sysvinit releases , reboot and halt should never be called directly. From release 2.74 on halt and reboot invoke shutdown(8) if
the system is not in runlevel 0 or 6. This means that if halt or reboot cannot find out the current runlevel (for example, when
/var/run/utmp hasn't been initialized correctly) shutdown will be called, which might not be what you want. Use the -f flag if you want to
do a hard halt or reboot.
The -h flag puts all harddisks in standby mode just before halt or poweroff. Right now this is only implemented for IDE drives. A side
effect of putting the drive in standby mode is that the write cache on the disk is flushed. This is important for IDE drives, since the
kernel doesn't flush the write-cache itself before poweroff.
The halt program uses /proc/ide/hd* to find all IDE disk devices, which means that /proc needs to be mounted when halt or poweroff is
called or the -h switch will do nothing.
AUTHOR
Miquel van Smoorenburg, miquels@cistron.nl
SEE ALSO
shutdown(8), init(8)
Nov 6, 2001 HALT(8)