I figured out that very often I use both the cd and ls commands one after the other. This is when I decided to create a bash function for it.
The code that I inserted into the bashrc file is this:
function cs () {
cd "$@" && ls;
}
The problem that I have is that the output of "ls" is good but I do not really navigate to that directory.
For example, when I call "cs Downloads/" I get as an output the content of Downloads but I do not navigate inside it.
I am new to the bash and I am sorry if I do any noob mistake.