Bash alias

Is there a way to implement bash alias (or something like that) in CoreElec?
I use often ssh and it would help me a lot to have something like alias for a long command sequences.

Put them in /storage/.profile.

1 Like

It works!

Thank you for your quick reply.

1 Like

I use a bunch of aliases, things like dir=ls -a and I also like to customize the PS1 prompt, took me a while to figure it out since I’m used to regular desktop Linux. With CE the home directory is /storage with a login of root. The shell is the busybox version of tsh so there’s some differences there from bash.

Is there a way to change the default directory for sftp?
.profile worked for ssh.