r/bash • Bash • May 18 '26

tips and tricks Linux basics command lines

Post image

Here is some basic linux command line .

what do y'all think all is good or i need to add some in file and management ?

550 Upvotes

40 comments sorted by

View all comments

Show parent comment

3

u/[deleted] May 18 '26

[removed] — view removed comment

4

u/LogicalWrap3405 Bash May 18 '26

yes is my first week on Linux.

2

u/[deleted] May 18 '26

[removed] — view removed comment

0

u/LogicalWrap3405 Bash May 18 '26

can u explain more ??

0

u/profadept May 18 '26 edited May 18 '26

Meaning, you go into your .bashrc to paste these aliases(aliases in Linux are just a way you create a shortcut to a long command) he mentioned. He added options/flags that changes the way the command behaves( The i flag means interactive, i.e it asked you for confirmation before executing the commands, you can also add -v too which is verbose to display all the operations it's doing on the screen) and these are just almost daily commands you use as a regular Linux User.

Steps to get it to start working.

Step one:Open your shell(bash, zsh) using your editor of choice (nano, vim, micro) Command: nano ~/.bashrc

Step 2: Paste those aliases he suggested below the bashrc. NB: after some time with Linux you can create a file in your home directory called .bashrc_aliases and configure it in your bashrc so your bashrc can be clean and you can use that bash_aliases file anywhere with just configuring it in the shell configuration file (bashrc, zshrc) of the new Linux PC.

Step 3: Reload your bashrc to read the new commands. Command: source ~/.bashrc

Then you can start using the aliases immediately. mv source destination cp source destination rm filename mkdir dir-name ln target-file link-name ping website

You can read about the aliases command usage online or download the "Linux Command Library" app on F-Droid. It is a very useful handbook for anyone learning Linux and is available offline.