Unix Commands for Beginners | Interview Questions

Published: 11 January 2021
on channel: total-qa
2,977
53

Git Bash:
----------------

Git Bash is a command line based tool allows us to easily access Git commands, inside the Windows environment.
It also helps to execute Unix style command-line environment.

Following are the unix commands are going to be discussed now:

ls
ls -al - default current directory
ls -al path
mkdir
cd
cd . - current folder
cd .. - parent of the folder
pwd
rm
touch
vi editor
:wq - write and quit
:q! -ignore the lines of code and quit
cat filecontents.txt
head : from the beginning of the file
tail : from the end of the file
wc
hostname
df
du
ps
history - lists all the command executed
ls -al | grep PatternMatch Filename.txt