Bash-script for MSX lovers <:RNFF:>

페이지 1/2
| 2

By molchuvka

Expert (85)

molchuvka의 아바타

04-09-2011, 06:36

echo >> ~/.bashrc
echo export PS1=\"Ok\\n\" >> ~/.bashrc
bash
Ok
lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Ok
echo Syntax error in echo
Syntax error in echo
Ok
renum
Ïðîãðàììà 'renum' íà äàííûé ìîìåíò íå óñòàíîâëåíà. Âû ìîæåòå óñòàíîâèòü å¸, âûïîëíèâ:
sudo apt-get install bwbasic
Ok
export LANG=en
Ok
renum
The program 'renum' is currently not installed. You can install it by typing:
sudo apt-get install bwbasic
Ok
sudo apt-get install bwbasic
...
Ok
10 help
10: command not found
Ok
Running Naked in a Field of Flowers

Login or 등록 to post comments

By ro

Guardian (4109)

ro의 아바타

04-09-2011, 08:39

wtf....

By molchuvka

Expert (85)

molchuvka의 아바타

04-09-2011, 09:11

PS1 is a bash prompt Ok\n

By edoz

Prophet (2171)

edoz의 아바타

04-09-2011, 10:04

hu ?

By evulopah

Hero (661)

evulopah의 아바타

04-09-2011, 10:20

Strangest post ever! The only recognizable for me is the sudo command, it's a unix-like command!

By molchuvka

Expert (85)

molchuvka의 아바타

04-09-2011, 10:26

This post for those having unix/linux/unixlike.

By pitpan

Prophet (3131)

pitpan의 아바타

04-09-2011, 15:08

Indeed!

Works like a charm for me (Ubuntu 11.04). Really curious! And if you configure the colours and font, then it rocks!

By pitpan

Prophet (3131)

pitpan의 아바타

04-09-2011, 16:18

Just in case: to restore the original config, all you have to do is

rm .bashrc

So that you delete the custom config and restore the original bash settings.

By molchuvka

Expert (85)

molchuvka의 아바타

05-09-2011, 02:56

Hey hey hey!!!

pitpan's suggestion is highly EVIL!!! To restore, you need to run
gedit ~/.bashrc

In gedit, delete a line
export PS1="Ok\n"

and save the file, then close gedit.

~/.bashrc often contain default bash configuration and is often non-empty file by default.

This file contents is being setup by either Ubuntu or their upstream -- so be careful to not delete it!

By molchuvka

Expert (85)

molchuvka의 아바타

05-09-2011, 02:57

Instead of deleting a line, you may prefix it with #:

#export PS1="Ok\n"

This has the same effect as deleting, but you preserve the text within the file.

Then, save and close.

By molchuvka

Expert (85)

molchuvka의 아바타

05-09-2011, 02:59

I tell about deleting a *line* in a file, and pitapan tells about EVIL *deleting a file*.

페이지 1/2
| 2