Most common commands that I use in my day to day linux activities...
sudo update-alternatives --config -java
- Command to switch between the alternatives versions of packages in your system.
/etc/resolve.conf
- To check/modify you DNS server settings.
Network Commands :
ifconfig
netstat
dhclient -- To get ip address automatically
service network-manager restart/start/stop
who
hostname new_name
ping ip_addr
ufw -- Use FireWall
/etc/lightdm/lightdm.conf
greeter-show-manual-login=true
-To enable root login
-Downloaded .deb packages will be in
/var/cache/apt/archives/
sudo dpkg-i path/filename.deb
-To install a downloaded .deb packages
/etc/bash.bashrc
alias customName=""
-To set alias
grep -sHrin "search string" .
-To search a string in all the files in the current directory
updatedb
-To update the local file structure database for find and locate commands.
find -iname filename
-To find a file in the current directory
ssh ip_addrs
-To login a machine in your local network.
diff -w fileName1 fileName2
-To compare two files in command line.
vimdiff fileName1 fileName2
-Graphical command diff utility.
export var=PATH
shutdown -h now
service serviceName start/stop/restart
ps -efH | more
To view current running processes in a tree structure. H option stands for process hierarchy.
free -tg
To view free RAM space.
top
-similar to TaskManager in windows
df -h
-To display harddisk usage
whatis commandName
-Displays info on the commandName
cp
mv
cat
chmod
chown
locate
man
file
To check a file property and for which architecture it is.
ar -x file.a
To extract a .a file.
To know package configuration
/usr/lib/pkgconfig
To get /dev/dsp
install osspd through synaptic manager