LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2015, 07:27 AM   #1
Volcano
Member
 
Registered: Sep 2005
Posts: 172

Rep: Reputation: 15
How to browse to this folder ?


How to browse to this folder ?

~/


I'm using WinScp.

Last edited by Volcano; 11-20-2015 at 07:29 AM.
 
Old 11-20-2015, 07:31 AM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Code:
cd ~/
This is the logged in user home directory.
 
Old 11-20-2015, 07:47 AM   #3
Volcano
Member
 
Registered: Sep 2005
Posts: 172

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson View Post
This is the logged in user home directory.
Thanks... this is complex syntax.

since we already have a folder "/" .... now you are adding a ~ just before ....and it becomes home directory....this is quite cumbersome ....is there any meaning why its like this ?

Last edited by Volcano; 11-20-2015 at 07:48 AM.
 
Old 11-20-2015, 08:24 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,491

Rep: Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429
no, you misunderstood I think
~ itself means the current user's home dir if it was the first char (for example in: cd ~)
~name means the home dir of user named "name". see man bash, tilde expansion

You can add a / afterward if you want to say: it is definitely a directory (not a file or link or something else), but you can ignore that).
 
Old 11-20-2015, 08:25 AM   #5
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,514

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Quote:
Originally Posted by Volcano View Post
since we already have a folder "/" .... now you are adding a ~ just before ....and it becomes home directory....this is quite cumbersome ....is there any meaning why its like this ?
Yes, there is meaning to it.
 
Old 11-20-2015, 09:02 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,245

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
The ~ as explained is a shortcut for the home directory of the user currently logged in. Unless your using the command line it really does not make sense in the WinSCP GUI environment. Are you using the explorer or Norton Commander interface?

Typically by default when you log in and you see the interface running you will be in your users home directory. If you change directories you can click on the little home icon at the top or the ctrl+h keys to go back.

The linux directory structure is often referred to as a tree with / being at the top. You can see the tree if using the explorer interface in the left pane. The users home directory is /home/user name.
 
Old 11-20-2015, 09:13 AM   #7
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,663
Blog Entries: 10

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Quote:
Originally Posted by Volcano View Post
I'm using WinScp.
I don't believe WinSCP gives a honking hoot about shell expansions.
 
  


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
make multiple folder on samba linux & each folder can be access each person only Aneesh.T .S Linux - Server 1 01-31-2013 07:01 PM
opening folder Windows Folder in Red Hat Linux TEXT MODE janbaztaimur Linux - Newbie 8 05-17-2011 05:34 PM
mixed mounting of automount and fstab in one folder? &different home folder using NIS herofmm Linux - Software 0 04-06-2009 12:00 PM
Rhythmbox Browse by File/Folder Rockgod1969 Linux - Software 2 12-22-2008 11:36 AM
Samba and browse folder.... dadora Linux - Newbie 2 04-02-2003 01:44 AM


All times are GMT -5. The time now is 08:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration