LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   dir in slackware? (https://www.linuxquestions.org/questions/slackware-14/dir-in-slackware-29420/)

Ice Dragon 09-02-2002 12:02 PM

dir in slackware?
 
Hey, I have slackware and fluxware, so I am forced to use xterm to look at my files. But, the problem is is that with slackware, all I ever see is bash-2.05a$, unlike in RH or in the command line when first starting my computer it has root@localhost and then if I cd it goes to root@localhost /usr/local etc.

But the big problem is is that I can't use dir if I am using a window manager. I have to go to logout of my WM to be able to use dir, and was wondering if there is just a different command for it or if I have to configure something first? Help would be appreciated, thanks.

Oh, and how the heck do you turn off these dang snow effects? :P I can't seem to turn them off and they are irritating me!

Also, how do you resize a window in fluxbox?

Excalibur 09-02-2002 04:08 PM

For you "dir" substitute command try "ls -l". Both are lowercase L's and not numbers. Add the option "a" if you want to see hidden files that start with a period.

You can configure the system prompt to what ever you want. Look in the file /etc/profile I think it is.

Sorry, I can't help on the other stuff.

kroniq 09-02-2002 10:36 PM

Put putting something like this in ~/.bashrc:
export PS1="\u@\h:\w\$"

Should make it a little easier to see where you are :)

dchmelik 07-18-2023 07:32 AM

dir exists lately
 
Recent years I was one day (or night) spaced out or tired, and I guess thinking about old times using DOS (on a 486 I later tried to install Slackware on) and I typed 'dir' and to my amazement it worked because surprisingly, in recent years Richard M Stallman (RMS) and maybe some others wrote dir command for GNU Coreutils you can run in bash and other shells. There's still nothing quite like the dir I was used to, but it's nice to know if I space out and make the mistake there's a solution now.

cwizardone 07-18-2023 09:04 AM

Quote:

Originally Posted by dchmelik (Post 6442787)
Recent years I was one day (or night) spaced out or tired, and I guess thinking about old times using DOS (on a 486 I later tried to install Slackware on) and I typed 'dir' and to my amazement it worked.....

Is this something relatively new?
I've spaced out, in the past, and typed dir instead of ls and it didn't work. Just tried it after reading your post and it did work.
Thanks for the info.
:)

ethelack 07-18-2023 10:41 AM

To turn off the screensaver type 'locate saver | grep bin' to find the screensaver applications.

Most likely you will have 'xscreensaver-settings' in which you can increase the blank time to have it appear less frequently.


To resize the window in fluxbox hold down the Alt key and drag mouse button 3 (right button).

You can put customize hotkey shortcuts to resize/move windows in ~/.fluxbox/keys

#resize windows on a 1920x1080 display:

Mod4 s :MacroCmd {resizeto 770 460} {moveto 575 340}
Mod4 e :MacroCmd {resizeto 1130 620} {moveto 400 260}
Mod4 w :MacroCmd {resizeto 1700 850} {moveto 100 100}

#By default Alt + F10 maximizes a window however I added:

Mod1 m :Maximize
Mod1 c :Close

#For urxvt terminal:
Control Mod1 t :Exec urxvt -fn "xft:Courier:bold:size=14" +sb -cr green -fg green -bg "#1b2b3F" -g 133x35+175+170

jayjwa 07-18-2023 10:52 AM

But wait, there's more!
 
If you like that, check out vdir.

They've been in coreutils for a long time (info coreutils).


Bonus Bash prompt while we're answering threads from long ago.
Code:

PS1="[\A] \u@\h [\w]\$ "
PS2="[\s \v\$ ]> "


business_kid 07-18-2023 11:40 AM

Quote:

Originally Posted by jayjwa
PS2="[\s \v\$ ]> "

For the lazy or uninitiated, what's $PS2?

astrogeek 07-18-2023 12:32 PM

Disregarding the fact that this is a 21 year stale thread (hint, hint), and without the normal rebuke for laziness because that is not a trait you normally display and we all have lapses from time to time (and because I had nothing better to do...) ;)

From man bash:

Code:

PS2    The  value  of  this  parameter  is  expanded  as with PS1 and used as the secondary prompt
              string.  The default is ``> ''.

...

When executing interactively, bash displays the primary prompt PS1 when it is ready to read a com‐
      mand, and the secondary prompt PS2 when it needs more input to complete a command.


business_kid 07-18-2023 02:44 PM

I quoted jayjwa. He posted 28 minutes before me. Admittedly it is a necro thread, but the resurrection was successful! :D.

Pithium 07-18-2023 11:18 PM

dchmelik is just being a diligent support technician and following up on old tickets. Now that dir is part of coreutils now I think we can mark this as resolved.


All times are GMT -5. The time now is 03:57 AM.