Web lists-archives.com

Re: Debian startup/booting help

On 06/13/2017 02:31 AM, tomas@xxxxxxxxxx wrote:

Hash: SHA1

On Mon, Jun 12, 2017 at 04:29:27PM -0400, DJ VIN Lom wrote:
Is there a way to edit a script so when my raspberry pi2 running raspian
jessie can automaticly go into a set directory so when it auto logs in its
in a certain directory
Hm. I'm not sure I understand. The "raspberry pi2" "being in a directory"
doesn't make sense like that. A running process has a current directory,
e.g. a shell, or something like that. But there are many running processes
in an operating system running on the pi.

What exactly are you trying to achieve? Please describe a bit more, so
we can get an idea.

- -- tomás
Version: GnuPG v1.4.12 (GNU/Linux)


As far as I understand I think what you want is to automatically enter into a directory relative to /home/<USER> as soon as you login and the shell starts. This can be achieved by adding a line into your .bashrc file.

I'm assuming you are using Bash shell and you are the only user but if its not true just add this line in all users' .bashrc file.

cd /home/<USER>/path/to/directory/

This directory can be anywhere as long as you have correct permissions.

From: Ankit R Gadiya <https://ankitrgadiya.in>