Author Topic: T-Shirt  (Read 411 times)

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3194
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
T-Shirt
« on: February 14, 2013, 07:47:48 AM »
I saw the following in Google+:

"There's no place like ~/."

Maybe it'd be a it clearer/funnier to have, "There's no place like /home."

It'd make a great T-Shirt.:)
« Last Edit: February 14, 2013, 07:49:54 AM by Georgetoon »
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1888
  • Certified Windows Hater
Re: T-Shirt
« Reply #1 on: February 14, 2013, 07:51:23 AM »
It is clear enough for those who know ;)
For the whole world, you are someone.
For someone, you are the whole world.

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3194
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: T-Shirt
« Reply #2 on: February 14, 2013, 08:01:13 AM »
It is clear enough for those who know ;)

Well, I thought they both mean the same thing.  Am I wrong?
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1888
  • Certified Windows Hater
Re: T-Shirt
« Reply #3 on: February 14, 2013, 08:09:37 AM »
Yes, they do but ~/ is even more teasing... and more geeky :)

I have also seen "There is no place like 127.0.0.1" :P
« Last Edit: February 14, 2013, 08:12:20 AM by agmg »
For the whole world, you are someone.
For someone, you are the whole world.

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12797
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: T-Shirt
« Reply #4 on: February 14, 2013, 08:12:52 AM »
Yes, they do but ~/ is even more teasing... and more geeky :)

I would say that /home/ is incorrect...

I have also seen "There is no place like 127.0.0.1" :P

I saw a doormat with "There's no place like 127.0.0.1" I don't think I like it... 127.0.0.1 is not 'home' it's 'localhost'... I can get 127.0.0.1 if I connect to the network anywhere... and it does not means that I am home... "There's no place like ~", "There's no place like ~/" or "There's no place like $HOME" would be cooler...

Also... There is no 127.0.0.1 folder...

[andrzejl@wishmacer ~]$ cd 127.0.0.1
bash: cd: 127.0.0.1: No such file or directory

So You cannot go home this way ;D!

@ Mark /home/ is where everyone's home could be. /home/mark/ is where Your home is. Treat /home/ as the neighborhood :) cd ~ or cd ~/ or cd $HOME will take You home... cd /home/ however - will not :). You should not have write access rights to the /home/ folder :) unless You're root... but then root's home is in /root/ folder. Treat root as a landlord - he can get You Your ~ folder or he can have You evicted ;)...
« Last Edit: February 14, 2013, 08:32:13 AM by AndrzejL »

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1888
  • Certified Windows Hater
For the whole world, you are someone.
For someone, you are the whole world.

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3194
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: T-Shirt
« Reply #6 on: February 14, 2013, 08:32:30 AM »
Heck.:)  I'l make my own "There's no place like ~/" Tee.:)
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10644
  • MLUs Forever!
Re: T-Shirt
« Reply #7 on: February 14, 2013, 08:51:28 AM »
It is clear enough for those who know ;)

Well, I thought they both mean the same thing.  Am I wrong?

They are different

~/  .......  /home/<user-name>/

/home/ .......  is not the same .....

try in a terminal

cd  ~/

and

cd /home/

and see the difference in the prompts or the output from the   ls  command  ;)

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Andy Axnot

  • Hero Member
  • *****
  • Posts: 694
Re: T-Shirt
« Reply #8 on: February 14, 2013, 05:49:09 PM »

Just curious, why is the "/" necessary in "~/", or is it?

Andy
Greetings from beautiful downtown Brooklyn, NY   USA
  Still searching for a replacement for KDE3; E17 is looking good; LXDE, too

"all will be fine soon, once kde3 is back on the main repos" - Titus T6us    :o

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10644
  • MLUs Forever!
Re: T-Shirt
« Reply #9 on: February 14, 2013, 05:54:41 PM »

Just curious, why is the "/" necessary in "~/", or is it?

Andy


Its not, in my example, but as all others had a trailing slash then that got it too.

so

cd  ~

is equally valid.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online Rudge

  • Hero Member
  • *****
  • Posts: 9687
  • I'm Just A Dog.
Re: T-Shirt
« Reply #10 on: February 14, 2013, 09:03:16 PM »
You could go to a specific directory in your home by specifying a "/directory" after the "~".

e.g. "cd ~/photos"  ;)

This command would take you to "/home/yourusername/photos"  if it existed.

Anytime you add a trailing "/" but do not specify a directory or file name, it is pretty much ignored.  

*Just adding to the info*  ;)
« Last Edit: February 14, 2013, 09:38:02 PM by Rudge »


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3990
Re: T-Shirt
« Reply #11 on: February 15, 2013, 10:34:25 AM »
The trailing / means the contents of a directory. Without that it means the file that contains the directory, which is usually the same thing, but not always. If the file is a symbolic link, for instance, "ls file" will just list "file@", whereas "ls file/" will list the contents of the linked directory.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline Andy Axnot

  • Hero Member
  • *****
  • Posts: 694
Re: T-Shirt
« Reply #12 on: February 15, 2013, 05:52:55 PM »

 OK, got it, thank you all!   :)

 Andy
Greetings from beautiful downtown Brooklyn, NY   USA
  Still searching for a replacement for KDE3; E17 is looking good; LXDE, too

"all will be fine soon, once kde3 is back on the main repos" - Titus T6us    :o

Offline harley

  • Jr. Member
  • **
  • Posts: 12
Re: T-Shirt
« Reply #13 on: February 18, 2013, 06:35:15 AM »
On application forms they often have three boxes for phone numbers: work,home and mobile. I really prefer not to give out a home number so I write 127 001.

Noone ever looks twice.

H