- To know the path of the binary being used:
which binary-name
- To know recently modified file in a directory:
ls -lrt
- To know the list of disks on the system:
sudo fdisk -l
- To know the application is available for installation from source list:
sudo dpkg -s application-name
- To install an application :
sudo apt-get install application-name
- To install an application without request for confirmation:
sudo apt-get -y install application-name
- To download a file from WebLink:
wget weblink
- To extract a tar or gz file and also display details of extraction:
tar xvf tarfilename
- To create a tar file and also display details of creation:
tar cvf tarfilename directorynamesdelimitedbyspace
- To modify permissions(Read-4, Write-2, Execute-1. First value in below command is for Owner, Second is for Group and Third is for Others ) for a file:
chmod 777 filename
- To modify permissions for a Directory:
chmod -R 777 directoryname
- To modify ownership of a File:
chown user-name filename
- To modify ownership for a Directory:
chown -R user-name directoryname
- To modify Group of a File:
chgrp group-name filename
- To modify Group for a Directory:
chgrp -R group-name directoryname
- To modify Owner & Group of a File:
chown user-name:group-name filename
- To modify Owner & Group for a Directory:
chown -R user-name:group-name directoryname