LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-08-2005, 05:31 AM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
Wink ~# What does this mean at login?


I thought root is just #
I get ~# what does the nene mean before root symbol? Or is this just the way it is in Slackware8? (I am running dualboot win98se one hd & Slack8 has its own hd) Thnx

Last edited by NightSky; 09-08-2005 at 05:33 AM.
 
Old 09-08-2005, 05:33 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The tilde (~) means you're in your home directory (root's home directory, right now).
 
Old 09-08-2005, 05:41 AM   #3
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
What is difference

If this is home root ~# What do I do here that I cant or dont do in #
Then what is # What is the difference? And I dont know how I login to ~#
I thought I was just logining in as root. lol U can refer me to a book, site or link if this is too basic a ques. Maybe a list defining commands and symbols for slackware8? thnx
 
Old 09-08-2005, 05:44 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You ARE logged in as root. As I said before, the ~ is just your home directory. If you were logged in as a normal user, the ~ would mean /home/username, for root, it's /root.

Edit: ~ for a user's home directory isn't specific to Slackware either.
 
Old 09-08-2005, 08:30 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
The Unix prompt is changeable depending on your needs, so ~, and even #, means nothing: it's only information. Only what you type has meaning.

However, it is usual on Unix systems to put a # at the end of root's prompt, and a % at the end of users' prompts (on Linux, for regular users, it is $ instead, I don't know why).

Yves
 
Old 09-08-2005, 08:36 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
But without changing anything, ~ is still a user's home directory.
 
Old 09-08-2005, 08:54 AM   #7
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Yes I was actually answering to NightSky, not to you. ~ is indeed the usual shell notation for $HOME.

Yves.
 
Old 09-08-2005, 01:03 PM   #8
AxelFendersson
Member
 
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184

Rep: Reputation: 32
Remember how in DOS and the Windows command line, it shows you the current working directory as part of the prompt? Something like C:\monkey> ? This is the same thing. As has already been explained, Linux (and other Unix-like OSes) uses ~ as a shorthand for whatever your home directory is (For root that would be /root). So if you're currently in your home directory, you'll have ~ as part of your prompt.
 
Old 09-08-2005, 01:36 PM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
The question is, though, do you have a normal user account or are you logging in directly as root? That's a no-no
 
Old 12-07-2005, 02:37 AM   #10
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
Thnx, I understand now.
 
  


Reply



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
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 13 07-24-2020 02:05 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Graphical login fail, text login works livewire98801 Linux - General 2 10-11-2004 06:09 PM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
Win2k Login wont work for samba login hellertech Linux - Networking 2 07-24-2003 09:12 AM

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

All times are GMT -5. The time now is 05:13 PM.

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