When I have started working on linux platform, i was unable to work.
And I m writing this myself actually so that i can get help form this post
to know about particular command and this post can also help others.
I will be covering all below questions.
How to find pid of program like firefox?
How to find out the current running kernel version?
How to find a file with .txt extension in particular directory?
How to find a file containing word 'hello' in particular directory?
How to change ownership recursively?
How to change permissions on directory recursively?
How to login using ssh?
How to check if package is installed Let for example if we want to check if apache is installed?
How to check for processes listening on port 80?
How to check for a procesess files are located?
How to Zip a folder in linux?
How to remove directory in linux?
How to find pid of program like firefox?
How to find out the current running kernel version?
How to find a file with .txt extension in particular directory?
How to find a file containing word 'hello' in particular directory?
How to change ownership recursively?
How to change permissions on directory recursively?
How to login using ssh?
How to check for processes listening on port 80?
How to check for a procesess files are located?
How to Zip a folder in linux?
How to remove directory in linux?
How to find pid of program like firefox?
How to find out the current running kernel version?
How to find a file with .txt extension in particular directory?
How to find a file containing word 'hello' in particular directory?
How to change ownership recursively?
How to change permissions on directory recursively?
How to login using ssh?
How to check if package is installed Let for example if we want to check if apache is installed?
How to check for processes listening on port 80?
How to check for a procesess files are located?
How to Zip a folder in linux?
How to remove directory in linux?
How to find pid of program like firefox?
ps -aux | grep firefox
How to find out the current running kernel version?
cat /proc/version
How to find a file with .txt extension in particular directory?
find /var/www/html/ -type f -name "*.txt"
How to find a file containing word 'hello' in particular directory?
grep -r "hello" /var/www/html/
How to change ownership recursively?
chown -R testuser /var/www/html
How to change permissions on directory recursively?
chmod -R 775 /var/www/html
How to login using ssh?
ssh user@localdomain.com -p 22
v
How to check if package is installed
Let for example if we want to check if apache is installed?
dpkg --get-selections | grep apache
How to check for processes listening on port 80?
sudo lsof -nPi | grep ":80 (LISTEN)"
How to check for a procesess files are located?
which apache2
How to Zip a folder in linux?
zip -r
How to remove directory in linux?
sudo rm -rf folderName
Comments
Post a Comment