Computing

Linux aliases help

Submitted by hanleyjaa123, , Thread ID: 231611

Thread Closed
19-01-2022, 12:54 AM
This post was last modified: 19-01-2022, 12:56 AM by hanleyjaa123
#1
im running Kali Linux 2021.4 OS and in the ~/.bashrc it says if you want to add permanent aliases then you should use the ~/.bash_aliases file, which i have edited with the following:

alias hanley='ssh hanleyjaa@ 10.0.0.8' <there is no space between the @ in the file, but the forums turns it into me referencing a user.

a simple command to ssh into the local server, but when saving the file and even using source ~/.bash_aliases the command simply does not work, it is an unrecognized command. ive tried to put it directly into the ~/.bashrc file and it doesn't work.

another problem that is when i use the source command on ~/.bashrc it spits out a ton of error codes and doesn't work.

https://i.imgur.com/pVo8Kok.png

I have no clue what the random characters are at the bottom of the terminal, after you try the command you can't get back to the terminal line to input more commands you have to kill the terminal or open a new one. does anyone know why this is happening or how to fix??

Users browsing this thread: 2 Guest(s)