LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-02-2002, 12:02 PM   #1
Ice Dragon
Member
 
Registered: Aug 2002
Distribution: Fedora Core 3
Posts: 31

Rep: Reputation: 15
Question 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?
 
Old 09-02-2002, 04:08 PM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
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.
 
Old 09-02-2002, 10:36 PM   #3
kroniq
LQ Newbie
 
Registered: Jun 2002
Posts: 20

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

Should make it a little easier to see where you are
 
Old 07-18-2023, 07:32 AM   #4
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Rep: Reputation: 149Reputation: 149
Smile 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.
 
Old 07-18-2023, 09:04 AM   #5
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,155

Rep: Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323
Quote:
Originally Posted by dchmelik View Post
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.

Last edited by cwizardone; 07-18-2023 at 10:18 AM.
 
Old 07-18-2023, 10:41 AM   #6
ethelack
Member
 
Registered: Mar 2021
Location: New Zealand
Distribution: Slackware
Posts: 81

Rep: Reputation: Disabled
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

Last edited by ethelack; 07-18-2023 at 06:01 PM.
 
1 members found this post helpful.
Old 07-18-2023, 10:52 AM   #7
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 795

Rep: Reputation: 255Reputation: 255Reputation: 255
Lightbulb 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\$ ]> "
 
1 members found this post helpful.
Old 07-18-2023, 11:40 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,423

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
Quote:
Originally Posted by jayjwa
PS2="[\s \v\$ ]> "
For the lazy or uninitiated, what's $PS2?
 
Old 07-18-2023, 12:32 PM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
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.

Last edited by astrogeek; 07-18-2023 at 12:38 PM. Reason: typos, expansion
 
Old 07-18-2023, 02:44 PM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,423

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
I quoted jayjwa. He posted 28 minutes before me. Admittedly it is a necro thread, but the resurrection was successful! .
 
1 members found this post helpful.
Old 07-18-2023, 11:18 PM   #11
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 07:54 PM
krecipes and ./configure -with-qt-dir=DIR disco rugby Linux - Software 4 06-13-2004 09:06 PM
X can't find kde dir Slackware 9 duhasst0 Slackware 3 01-28-2004 03:06 AM
QT dir in RH9 Baklan Linux - Newbie 1 07-11-2003 05:59 PM
dir to ls loganwva Linux - General 7 04-22-2002 10:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration