Search This Blog

Sunday, December 25, 2011

Unix

=======================
Installation
=======================

Boot Loader
---------------
nano /boot/grub/grub.cfg
cut / paste (^k and ^u) menu entries in right order
set-grub-default 0
update-grub

---------------

grub commands
---------------
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1
initrd /boot/initrd
boot

=======================

================
File System
================
Recrusing Listing:     ls -R
All Files:                   ls -A
Files only:                 ls -l | grep ^-
Directory only:         ls -D
Sort by Filesize:        ls -S
Sort by Time            ls -t
Sory by Extension   ls -X
Find                         grep


Change owner
chown -R k:k /store

Change permission
chmod -R 777 /store

Find disk space
df -h /store
du -hc /store

$ sed -n '/WORD1/,/WORD2/p' /path/to/file


Compress
-----------
tar
sudo tar -xvf


Disk utilities
----------------
sudo apt-get gparted
sudo gparted

Find Disk details
sudo fdisk -l

Check Disk
fsck /dev/sda1
================

================
Programs
================
Updates
sudo apt-get updates

--------
uTorrent
--------
http://www.howopensource.com/2011/08/install-utorrent-in-ubuntu-fedora/
-------------------
cp /opt/
sudo tar -xvf
sudo rm -rf
sudo chmod 777
sudo ln -s
utserver -settingspath
http://localhost:8080/gui

------------------------
Lib
------------------------
ldd

================


================
System 
================

CPU info
cat /proc/cpuinfo


Memory info
cat /proc/meminfo



Log 
--------
dmesg
lspci



/var/log/dpkg.log
================


================
Network
================
sudo dhclient -r
sudo dhclient eth0


-------
DNS
-------
apt-get install bind9
apt-get install dnsutils


Change Hostname
nano /etc/hostname
nano /etc/hosts
or
hostname ka

DNS lookup tool
dig

================

================
Security
================

sudo useradd -d /home/k -m k -s /bin/bash
sudo passwd k


usermod -G admin k
cat /etc/passwd
cat /etc/group

expire immediate
sudo -k

change to root
sudo -s
================

================
Miscellaneous
================
root password
create admin user

skpe
voip client
chrome
flashplayer

apt-get install  rssh
apt-get install vnc4server
apt-get install vncviewer
sudo apt-get install --no-install-recommends gnome-panel
================ 

Putty : http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter3.html

No comments:

Post a Comment

Followers