masalah konsole

The openSUSE project is a community program sponsored by Novell. Promoting the use of Linux everywhere, openSUSE.org provides free, easy access to the world's most usable Linux distribution, openSUSE. The openSUSE project gives Linux developers and enthusiasts everything they need to get started with Linux.

Moderator: Moderators

masalah konsole

Postby modz » Tue Nov 11, 2008 7:12 pm

Halo semua...
langsung aja ni.
g baru coba freeBSD, cukup menarik dan memang sangat cocok untuk server.
di konsole itu kan ada path lokasi tempat kita aktif,
nah kalo di freeBSD itu setiap kita masuk ke suatu direktori path nya itu tetep kan sedangkan di opensuse g itu nambah terus,
malah akhirnya bikin sempit konsole g aja.

contoh di open suse
root@wf0#cd document
root@wf0 document#cd document1
root@wf0 document\document1#

contoh di freeBSD
root@wf0#cd document
root@wf0#cd document1
root@wf0#

begitu seterusnya...
nah gimana ya caranya supaya konsole di opensuse g bisa kaya di freebsd????
makasih semua. :-)
ilmu tidak dibawa mati, karena itu lebih baik dibagikan
User avatar
modz
Junior Member
Junior Member
 
Posts: 213
Joined: Mon Aug 04, 2008 5:21 pm
Location: Tangerang

Re: masalah konsole

Postby hxpurnama » Tue Nov 11, 2008 11:28 pm

pake bash, trus taruh baris ini di bashrc:
export PS1="\$? \u@\h: \w\n\d, \$(date +%R) \$ "
Software is like sex; it's better when it's free.
-- Linus Torvalds
User avatar
hxpurnama
Senior Member
Senior Member
 
Posts: 694
Joined: Thu Sep 27, 2007 10:03 am
Location: Jakarta

Re: masalah konsole

Postby crazynuxer » Wed Nov 12, 2008 11:20 am

* \a : an ASCII bell character (07)
* \d : the date in "Weekday Month Date" format (e.g., "Tue May 26")
* \D{format} : the format is passed to strftime(3) and the result
is inserted into the prompt string; an empty format results in a
locale-specific time representation. The braces are required
* \e : an ASCII escape character (033)
* \h : the hostname up to the first '.'
* \H : the hostname
* \j : the number of jobs currently managed by the shell
* \l : the basename of the shell's terminal device name
* \n : newline
* \r : carriage return
* \s : the name of the shell, the basename of $0 (the portion
following the final slash)
* \t : the current time in 24-hour HH:MM:SS format
* \T : the current time in 12-hour HH:MM:SS format
* \@ : the current time in 12-hour am/pm format
* \A : the current time in 24-hour HH:MM format
* \u : the username of the current user
* \v : the version of bash (e.g., 2.00)
* \V : the release of bash, version + patch level (e.g., 2.00.0)
* \w : the current working directory, with $HOME abbreviated with a tilde
* \W : the basename of the current working directory, with $HOME
abbreviated with a tilde
* \! : the history number of this command
* \# : the command number of this command
* \$ : if the effective UID is 0, a #, otherwise a $
* \nnn : the character corresponding to the octal number nnn
* \\ : a backslash
* \[ : begin a sequence of non-printing characters, which could be
used to embed a terminal control sequence into the prompt
* \] : end a sequence of non-printing characters


itu untuk kode2 silahkan di sesuaikan sendiri :d
kesempurnaan dibentuk dari hal yg kecil tapi kesempurnaan bukan lah hal yg kecil
User avatar
crazynuxer
Advanced Member
Advanced Member
 
Posts: 1289
Joined: Fri Sep 01, 2006 3:13 pm
Location: Jakarta Selatan

Re: masalah konsole

Postby modz » Wed Nov 12, 2008 2:00 pm

wah saya coba dulu...
terima kasih
ilmu tidak dibawa mati, karena itu lebih baik dibagikan
User avatar
modz
Junior Member
Junior Member
 
Posts: 213
Joined: Mon Aug 04, 2008 5:21 pm
Location: Tangerang

Re: masalah konsole

Postby modz » Thu Nov 13, 2008 3:36 pm

udah di coba neh...
trus kalo supaya root nya juga kaya gitu gimana ya?
g uda coba bikin di /etc/skel tapi ga ngaruh juga.
ilmu tidak dibawa mati, karena itu lebih baik dibagikan
User avatar
modz
Junior Member
Junior Member
 
Posts: 213
Joined: Mon Aug 04, 2008 5:21 pm
Location: Tangerang

Re: masalah konsole

Postby ibenk68th » Thu Nov 13, 2008 3:44 pm

mungkin bukan di /etc/skel/.bashrc, tapi di /etc/bashrc

salam...
be honest to your self, before you give it to someone else
visit and join with us at http://fedora.linux.or.id and http://forum.fedora.or.id
User avatar
ibenk68th
Starting Member
Starting Member
 
Posts: 86
Joined: Mon Sep 22, 2008 8:49 pm
Location: Bandung - ID

Re: masalah konsole

Postby crazynuxer » Thu Nov 13, 2008 4:55 pm

atau masukkin di /etc/profile mas :D
atau ~/.profile
kesempurnaan dibentuk dari hal yg kecil tapi kesempurnaan bukan lah hal yg kecil
User avatar
crazynuxer
Advanced Member
Advanced Member
 
Posts: 1289
Joined: Fri Sep 01, 2006 3:13 pm
Location: Jakarta Selatan


Return to openSUSE Linux Support

Who is online

Users browsing this forum: No registered users and 1 guest