Skip to main content

Command Palette

Search for a command to run...

Linux Command every Developers should know.

Updated
2 min read
Linux Command every Developers should know.

Why Linux ? not Windows ?

Well Linux is most used server based Operating system and most back-end servers run Linux and knowing Linux commands is important to access the Linux terminal.

Basic Linux Commands:

pwd = print working directory
ls = list all the items in the directory
ls -l = list of all items with full detail (long format)
ls -a = list all the files including hidden
mkdir dir-name= create new directory(folder)
touch file-name = create new file
cat = view file contents
rm file-name = delete file
rm -r dir-name = delete dir
cp file-name copy-file-name = copy the file to another file
cp -r dir-name copy-dir-name = copy the complete directory
echo "text" > file-name = write in the file
    -by using echo we also create new file with text init

mv teste.txt tester.txt = rename the file
mv filename destination = move the file
less file-name = to view file
head file-name = print first 10 lines of the file
tail file-name = print last 10 lines of the file
head -n 5 file-name = print first n number of lines in the file ( here first 5 lines)
tail -n 5 file-name = print last n number of lines in the file ( here last 5 lines)
tail -f filename = print last 10 lines untill we stop by ctrl+c ( used for live logs)

grep word file-name = find specific word inside the file ( case sensitive)
grep -i word file-name = case insensitive search
grep -n word file-name = shows line number where that word exist
find . -name "filename" = find the file by name ( case sensitive)
find . -iname "filenmae" = case insensitive
find . -type -f = find the files
find . -type -d = find the directories
find . -size +1M = find the file with size more than 1mb 
find . -size -1M = find the file with size less than 1mb 
find . -name "*.log" -exec grep ERROR {} \; = Search text inside found files

Will it help me to become a Back-end Developer ?

Just learning Linux Commands won’t have you a Back-end Developer, Linux is just OS which is most used for servers , so learning it will help in the long run.

We need more than Basic Linux commands to be a Back-end Developer. Read the Article about what is Back-end Development?
The Article is Available at Becoming.