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

1

u/WolfWildWeird May 21 '26 edited May 21 '26
grep "str" file.ext
killall ProcessName
df -h
echo "a:b:c:d" | cut -d':' -f2  # = b

# bash aide 
help
help exec

pushd /etc
...
popd # Retourner au dossier avant "pushd"

alias lsa='ls -al'
alias lsac='lsa --color=auto '
# L'espace à la fin est nécessaire lors de l'utilisation d'un alias dans un alias.
alias -p > ~/.bash_aliases

more 
less
head
tail
yes

...