GotoYourLink.com

The Official Web Site of Joby Mathew

GotoYourLink.com header image 3

My every day Linux Commands

Change directory cd directoryname
Add new user useradd username
Set password passwd username
Delete User passwd –delete username
Edit file vi filename
Use the last command up arrow
Kernel Commands
——————–
Config modules? make config
remove module rmmod module-name
insert module insmod module-name
View all processes ps -aux
Show devices cat /proc/bus/usb/devices
show rpms(samba) installed rpm -qa | grep samba
Remove non empty folder rm -rf foldername/
Deliver waiting mails sendmail -q -v
Check Mail Queue mailq
Program exists / Path which programname
Create Stmbolic Link ln -s linux-2.4.20 linux
Which kernel uname -r
Start ssh sshd
Is process running? ps aux | grep process
Untar Kernel cd /usr/src
tar xjvf <kernel source name>
ln -s <kernel source name> linux
To start/stop firewall /sbin/service iptables restart/stop/start

UNZIP
——
Unzip gunzip
Untar tar xf
Unzip and install tar -zxvf
Unzip and install bz2 tar -jxvf
Bunzip bunzip2 -c xmltv-x.x.x.tar.bz2 | tar -xvf -

Download dependencies yum

Tool that will enable you
to choose which services
run at startup ntsysv
Diskspace df
File/Folder Size du
Remove rpm rpm -e
Service restart service myservice restart
FTPD start service vsftpd start
list of packages in install order rpm -qa –last

Network
——–
set ip address ifconfig 192.168.0.1
set gateway route add default gw 192.168.1.1 eth0
to set proxy in yum http_proxy=http://proxy:portnum
Add DNS vi /etc/resolv.conf
proxy /etc/profile or .bashrc, .profile, .cshrc files
If you’re behind an HTTP
application proxy firewall
set up your $HOME/.wgetrc with
your proxy as follows: http-proxy=http://your-proxy.your-domain:80

YUM
—-
yum update

————————————————————-
SAMBA

mount a windows share from linux like this

mount -t smbfs -o username=xxx,password=xxx //server/share /mnt/share

———————————————

No Comments

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

Scoutle.com
Scoutle.com