How to add a line into .bashrc? I'm new to Ubuntu system

How do the following instructions follow in Ubuntu system? Add following line into ~/.bashrc or ~/.cshrc or ~/.tcshrc.

 ulimit -s unlimited

Solution 1:

Open file manager and press ctrl + h to show hidden files.

Then, double click the .bashrc file to open it (by default, Ubuntu uses bash, and you would not find ~/.cshrc or ~/.tcshrc). Alternatively, right click on it to open it with the text editor.

Now add the line you need to add, and save the file. Close this terminal and open a new terminal for the changes to take effect (alternatively, enter the command source .bashrc, if you don't want to open a new terminal).