Date: Mon, 29 Jun 2020 15:14:43 -0600 From: Brandon helsley <brandon.helsley@hotmail.com> To: freebsd-questions <freebsd-questions@freebsd.org> Subject: Shell Message-ID: <CY4PR19MB010400AC4940C67421BFADE8F96E0@CY4PR19MB0104.namprd19.prod.outlook.com> In-Reply-To: <> References: <>
next in thread | raw e-mail | index | archive | help
There has been a difference in the hash sign of the command line. When I'm logged in as user it is $. 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? I have to do pwd instead of just knowing what directory I am in. From owner-freebsd-questions@freebsd.org Mon Jun 29 21:51:31 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 D05483567DF for <freebsd-questions@mailman.nyi.freebsd.org>; Mon, 29 Jun 2020 21:51:31 +0000 (UTC) (envelope-from dwilde1@gmail.com) Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (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 49wh5Z6H7Nz4VLl for <freebsd-questions@freebsd.org>; Mon, 29 Jun 2020 21:51:30 +0000 (UTC) (envelope-from dwilde1@gmail.com) Received: by mail-lj1-x22c.google.com with SMTP id t25so15451681lji.12 for <freebsd-questions@freebsd.org>; Mon, 29 Jun 2020 14:51:30 -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=YJyA2M0ko81xMwXRvEyvA+tX9VnLoWc+uJEX/H+YrP4=; b=OER2bfc3BO28pZ5wyCUM4MBtMu5VEWVxzjRWjlu7qftd1cZvx4UG9cNC4l6pXQ2r0X ri/DAJ4swxrWv+3/ahDK07bqnCNmmilxsErKZCnqvFhcQUhC9D9zTZFbvIP+hhcgDKaJ Fq2ImCXrs3/3XrTiOpj85aqOZyXeRdy4keFp68DaSTNUKxJQsbR8ak6PDIHeqS7HQuEJ KVuPHN85p3SEkgiGXs+ri3VjVrEvVikGn9qPcZHp6HnsAtrycRgMXW8+q8hB+ARon008 QHxV0byiMKbh5igGXrAtpSt0QRn4nDC7E44RVqnzltMT7qKP75rPrphBwikMTF2ogpSM B3bg== 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=YJyA2M0ko81xMwXRvEyvA+tX9VnLoWc+uJEX/H+YrP4=; b=dQDYJR5wUo5fb3jKwSdD97hMUlT1QVPnPMIWon9m9fccB2UnwtaG3y03ZfF/qxxawY XFCIdVKxaLJWV1P8Okc0ODUzKBAZcvuBE7doBvnqADf9VHw5umv1xBLSNbim/unL3xy+ R4WnDwVVY8nSZ0gvvO6++NO1t81rQfKUWWK/Dm6Y6tyPcrIAG7tlJ6Djk2v0jeRo90mQ vmMj/td0CVGag6XpIcLCglnmnU8I9OhRUSF/UvUiF/TTPo/gxUfXjIIAoeaerdahEyfn DTAdwBjcr1In5hfPXs/itT5yHekl6yTA61kQwF6/21CKHw5EusJQ/Jn4m1YiXVdOfgX9 Oc1g== X-Gm-Message-State: AOAM533+FGuV0kAwZfbdNKnabruWTfX6bQjVTd13i97sLSb9vGhWdeZN A5PvGuswON6dwEwZ8SdCx2jjgdfvnezpcYPmTr0= X-Google-Smtp-Source: ABdhPJw6F3qWX43rU4K+2Z+Wg65TDF0PCezqiGqz6DocIUw5w1PiCNg+tQCg4np82d+m6RlueaFMv1TouS66ipwavks= X-Received: by 2002:a2e:580f:: with SMTP id m15mr8541294ljb.357.1593467488892; Mon, 29 Jun 2020 14:51:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab3:4703:0:0:0:0:0 with HTTP; Mon, 29 Jun 2020 14:51:28 -0700 (PDT) Reply-To: dwilde1@gmail.com In-Reply-To: <CY4PR19MB010400AC4940C67421BFADE8F96E0@CY4PR19MB0104.namprd19.prod.outlook.com> References: <CY4PR19MB010400AC4940C67421BFADE8F96E0@CY4PR19MB0104.namprd19.prod.outlook.com> From: Donald Wilde <dwilde1@gmail.com> Date: Mon, 29 Jun 2020 14:51:28 -0700 Message-ID: <CAEC7392icESwn=n=xNQD9nhGJgTcSegttBpfxwps3Rgv+7c9kA@mail.gmail.com> Subject: Re: Shell To: Brandon helsley <brandon.helsley@hotmail.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49wh5Z6H7Nz4VLl X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=OER2bfc3; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dwilde1@gmail.com designates 2a00:1450:4864:20::22c as permitted sender) smtp.mailfrom=dwilde1@gmail.com X-Spamd-Result: default: False [-2.85 / 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:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; 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(-1.03)[-1.032]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.21)[0.205]; NEURAL_HAM_LONG(-1.02)[-1.019]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; FREEMAIL_REPLYTO(0.00)[gmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22c: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: Mon, 29 Jun 2020 21:51:31 -0000 On 6/29/20, Brandon helsley <brandon.helsley@hotmail.com> wrote: > > > > There has been a difference in the hash sign of the command line. When I'm > logged in as user it is $. 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? I have to do pwd instead of just knowing what directory I am in. > > The shell used for the root user is different than the shell used for a regular user, csh is leaner but also meaner than sh in many ways. Do some research: man csh. You can also get more examples on the web; google 'freebsd csh set prompt'. In order to modify your prompt, you need to alter the variable PS1 in your .cshrc (C-shell startup file, note the starting '.') in your /root directory. For your regular prompt, look in the .profile file in /home/myuser. I will warn you up front: the two shells are quite different. Save a backup of each of these files before you alter them. If your computer dumps you into shell mode without booting, having a .profile in /root is also a good idea. From the emergency shell you can 'source /home/myuser/.profile' -- 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?CY4PR19MB010400AC4940C67421BFADE8F96E0>