Date: Thu, 2 Jul 2020 10:53:19 -0600 From: Brandon helsley <brandon.helsley@hotmail.com> To: Polytropon <freebsd@edvax.de>, Per Hedeland <per@hedeland.org> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Shell Message-ID: <CY4PR19MB0104D3CC0D3BF13B93AB8A1BF96D0@CY4PR19MB0104.namprd19.prod.outlook.com> In-Reply-To: <20200630143913.e27eb3e3.freebsd@edvax.de> References: <20200630143913.e27eb3e3.freebsd@edvax.de> <CY4PR19MB010400AC4940C67421BFADE8F96E0@CY4PR19MB0104.namprd19.prod.outlook.com> <DB8PR06MB6442289C119C69BDF4303E72F66F0@DB8PR06MB6442.eurprd06.prod.outlook.com> <20200630104317.812dce86b2dc5ea5a42a1ee1@sohara.org> <a590654c-ffa2-3171-ce44-ae3f33214b14@hedeland.org> <20200630143913.e27eb3e3.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
>This was definitely not my impression of the OP's *problem* - in particular, the first message https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290424.html says "When I am logged in as root it is #, even when I do not execute a shell. Usually it was root@machine17#. How do I change it back?", and https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290428.html says "I don't want to change the prompt for the usr, just for the csh shell for root". --Per Thank you all for the help. I think I was not specific enough with my problem. I now know how to change the prompt to what I want but still have to issue the command "pwd" to see what directory I'm in. For example, when I cd to the /usr/home/ directory my prompt is still only root@machine17# instead of root@machine17#~/usr/home/ > > On Jun 30, 2020 at 7:21 AM, Per Hedeland <per@hedeland.org> wrote: > > > On 2020-06-30 14:39, Polytropon wrote: > On Tue, 30 Jun 2020 13:27:58 +0200, Per Hedeland wrote: >> On 2020-06-30 11:43, Steve O'Hara-Smith wrote: >>> On Tue, 30 Jun 2020 14:44:34 +0530 >>> Manish Jain <bourne.identity@hotmail.com> wrote: >>> >>>> It is often unnoticed that FreeBSD has a mirror of the root user >>>> appropriately named toor (whose shell can be anything). >>> >>> Traditionally root ran /bin/csh and toor ran /bin/sh to keep both >>> BSD and AT&T trained sysadmins happy, it really doesn't matter what login >>> shell root uses at work we use zsh, at home I use bash but you could even >>> use mc or vshnu. >>> >>> However the OP was concerned about the prompt (which many people >>> have correctly said involves setting PS1) rather than the shell. >> >> Yes, PS1 is what to set for /bin/sh and its relatives (e.g. bash, >> zsh), but it has no effect for csh/tcsh - there you need to set >> 'prompt' (and the "formatting sequences" are a lso different). And it >> seems the OP was primarily interested in root's prompt (i.e. csh by >> default). > > The first message says that the prompt character is $, which would > not be the case (per default) if the C shell was chosen; so the > case probably is related to "shell changed from C shell to sh", > rather than "the dog ate my configuration files". ;-) This was definitely not my impression of the OP's *problem* - in particular, the first message https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290424.html says "When I am logged in as root it is #, even when I do not execute a shell. Usually it was root@machine17#. How do I change it back?", and https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290428.html says "I don't want to change the prompt for the usr, just for the csh shell for root". --Per _______________________________________________ freebsd-questions@freebsd.org mailing list https://lists.freebsd.org/mailman/listi nfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-questions@freebsd.org Thu Jul 2 17:34:49 2020 Return-Path: <owner-freebsd-questions@freebsd.org> Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2E43035BCC9 for <freebsd-questions@mailman.nyi.freebsd.org>; Thu, 2 Jul 2020 17:34:49 +0000 (UTC) (envelope-from dwilde1@gmail.com) Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49yQG021b3z46My for <freebsd-questions@freebsd.org>; Thu, 2 Jul 2020 17:34:48 +0000 (UTC) (envelope-from dwilde1@gmail.com) Received: by mail-lj1-x242.google.com with SMTP id q7so20031766ljm.1 for <freebsd-questions@freebsd.org>; Thu, 02 Jul 2020 10:34:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=aecYvXkTBnX5XksWXnlvItLXlZNfRWtFaww96F3US+w=; b=Jk4SQQPoPjgZ8U6AoZMvhHc5kd1H4F7Mku4mEFWo93wGxfQ/YUr1zsexJZboOTAhKQ riTTSb+RoLqRtkWxShKDR79fMv9MhOiRUwlyDLBpKaLkTxteCyFz0svPohzJ/XE3s0Md uzbPN5+o84u2/IeeVpeKLPr1i4oDE3gSnpBvrXQWGPFHAAVtRWeayan3cQf0Wi+VgoEM BCojqjaQ/XDlJWsFbhOzAb8vavnafHIsjv/Sc75YaEz2OTkPqi4zycTcdleAoeg8kfOJ 39A+hu9982xygAE8ZmjJpegKYb9G9XfxnA8p/2sJk2t2nmIyutV0Ycv7nOyjqNwNfK1j ufgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=aecYvXkTBnX5XksWXnlvItLXlZNfRWtFaww96F3US+w=; b=kOF+5XzE3Lzfc9UVRyc5JqQXZ60eC3KU/BVFtgArHp8K9heqtVuw90pPsloJJT5AZ4 Of/jFw8qLyR3lYBsVZeEJo5csXT4e+NryERD3952Fa4O+v4gqXVT9zDzePWeIp8QvQQo 43lmAqCBtgXmfdRtoXduhF5M3GZ1k5cZRnw6tN0jQ/vBdxdkmVnq3J/+Wm9BzzdxzXfS epx4TWIgwtMkgoklrS7cCU9o71Pxzv/HwAytvRUwybNubZgodvg3LD72N2+UulAZdfEy h9eWNxWcyiN3Cwb1o5Ag5JHYXv8b99vNv+3WTKtKF6WP6IivCJkW8NFQ1l3udhi1H0b+ KTTQ== X-Gm-Message-State: AOAM532RdB974Ky+eUp3PSCtrUoemJ4i9eUXRz/MK/34D6reZplYdQfC dp+IYNJnHsDpNVo7yVI2HTgKF8Htvm93fC4k6ts= X-Google-Smtp-Source: ABdhPJwcfo6xOgcw4TVIhiCbwaVII0lD4Ucy6KMeN5AgK4IRSOyn8VRYlKaF4jU+v9KrrpAC5UUGVvtS++nVfOYXGJ8= X-Received: by 2002:a05:651c:2006:: with SMTP id s6mr6153881ljo.74.1593711285545; Thu, 02 Jul 2020 10:34:45 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab3:4703:0:0:0:0:0 with HTTP; Thu, 2 Jul 2020 10:34:45 -0700 (PDT) Reply-To: dwilde1@gmail.com In-Reply-To: <CY4PR19MB0104D3CC0D3BF13B93AB8A1BF96D0@CY4PR19MB0104.namprd19.prod.outlook.com> References: <CY4PR19MB010400AC4940C67421BFADE8F96E0@CY4PR19MB0104.namprd19.prod.outlook.com> <DB8PR06MB6442289C119C69BDF4303E72F66F0@DB8PR06MB6442.eurprd06.prod.outlook.com> <20200630104317.812dce86b2dc5ea5a42a1ee1@sohara.org> <a590654c-ffa2-3171-ce44-ae3f33214b14@hedeland.org> <20200630143913.e27eb3e3.freebsd@edvax.de> <CY4PR19MB0104D3CC0D3BF13B93AB8A1BF96D0@CY4PR19MB0104.namprd19.prod.outlook.com> From: Donald Wilde <dwilde1@gmail.com> Date: Thu, 2 Jul 2020 10:34:45 -0700 Message-ID: <CAEC73921SCdteeSNMe+ec-pftGDVqS-MumpbhB7inO_osDaGRQ@mail.gmail.com> Subject: Re: Shell To: Brandon helsley <brandon.helsley@hotmail.com> Cc: Polytropon <freebsd@edvax.de>, Per Hedeland <per@hedeland.org>, freebsd-questions <freebsd-questions@freebsd.org> Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49yQG021b3z46My X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Jk4SQQPo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dwilde1@gmail.com designates 2a00:1450:4864:20::242 as permitted sender) smtp.mailfrom=dwilde1@gmail.com X-Spamd-Result: default: False [-3.28 / 15.00]; HAS_REPLYTO(0.00)[dwilde1@gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.38)[-0.384]; FREEMAIL_TO(0.00)[hotmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.89)[-0.886]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.01)[-1.009]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::242:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 02 Jul 2020 17:34:49 -0000 On 7/2/20, Brandon helsley <brandon.helsley@hotmail.com> wrote: > > > > >>This was definitely not my impression of the OP's *problem* - in > > particular, the first message > > https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290424.html > > says "When I am logged in as root it is #, even when I do not execute > > a shell. Usually it was root@machine17#. How do I change it back?", > > and > > https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290428.html > > says "I don't want to change the prompt for the usr, just for the csh > > shell for root". > > > > --Per > > > > > > > Thank you all for the help. I think I was not specific enough with my > problem. I now know how to change the prompt to what I want but still have > to issue the command "pwd" to see what directory I'm in. For example, when I > cd to the /usr/home/ directory my prompt is still only root@machine17# > instead of root@machine17#~/usr/home/ > Hi, Brandon -- Glad you are learning and that you're sticking to it. Try this. when you log in, log in to your computer as root with the root pw. cd to somewhere. Do you NOT see the path before the #? (in a text console window) If you do, examine the difference between the /root/.cshrc and yours in /home/me/.cshrc. -- Don Wilde **************************************************** * What is the Internet of Things but a system * * of systems including humans? * ****************************************************
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CY4PR19MB0104D3CC0D3BF13B93AB8A1BF96D0>