teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

追記

2019/10/22 01:52

投稿

cateye
cateye

スコア6851

answer CHANGED
@@ -2,4 +2,42 @@
2
2
 
3
3
  当然といえば当然だと思います。・・・ログインしなければ、「カレント・ディレクトリ」もありません。
4
4
 
5
- ・・・疑問を持った経緯は何でしょう?
5
+ ・・・疑問を持った経緯は何でしょう?
6
+
7
+ [追記]下記はLinuxからFreeBSDにログインした時のものですが、この場合もLinuxにはログインした状態でBSDにログインしています・・・ログイン前のpwdはLinux側、その後はBSD側のディレクトリが表示されます。
8
+ 分かりますか?
9
+
10
+ ```text
11
+ usr ~ % pwd
12
+ /home/xxxxx
13
+ usr ~ % server
14
+ Password for kondo@svr.cateye.jp:
15
+ Last login: Sat Oct 19 10:48:47 2019 from 192.168.1.50
16
+ FreeBSD 11.3-RELEASE-p3 (GENERIC) #0: Mon Aug 19 21:08:43 UTC 2019
17
+
18
+ Welcome to FreeBSD!
19
+
20
+ Release Notes, Errata: https://www.FreeBSD.org/releases/
21
+ Security Advisories: https://www.FreeBSD.org/security/
22
+ FreeBSD Handbook: https://www.FreeBSD.org/handbook/
23
+ FreeBSD FAQ: https://www.FreeBSD.org/faq/
24
+ Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
25
+ FreeBSD Forums: https://forums.FreeBSD.org/
26
+
27
+ Documents installed with the system are in the /usr/local/share/doc/freebsd/
28
+ directory, or can be installed later with: pkg install en-freebsd-doc
29
+ For other languages, replace "en" with a language code like de or fr.
30
+
31
+ Show the version of FreeBSD installed: freebsd-version ; uname -a
32
+ Please include that output and any error messages when posting questions.
33
+ Introduction to manual pages: man man
34
+ FreeBSD directory layout: man hier
35
+
36
+ Edit /etc/motd to change this login announcement.
37
+ Nice bash prompt: PS1='([$(tput md)]\t <\w>[$(tput me)]) $(echo $?) $ '
38
+ -- Mathieu <mathieu@hal.interactionvirtuelle.com>
39
+ svr ~ %
40
+ svr ~ % pwd
41
+ /usr/home/xxxxx
42
+ svr ~ %
43
+ ```