Shared Flashcard Set

Details

Linux Shortcuts
shortcuts around linux
27
Computer Networking
Professional
11/20/2011

Additional Computer Networking Flashcards

 


 

Cards

Term
grep chipset /var/log/Xorg.0.log does what?
Definition
shows the log file for the Xorg display drivers.
Term
rpm -Uvh
Definition
installs/upgrades rpm
Term
yum install httpd
chkconfig --levels 235 httpd on
/etc/httpd/conf/httpd.conf
remove pound in front of namevirtualhost*:80
save
type: service httpd restart
Definition
Term
type "setup" in terminal as root to set up networking card.
Definition
Term
apache default directory for www is:
/var/www/html
Definition
Term
ifconfig eth0 up 192.168.0.1 netmask 255.255.255.0
route add default gw 192.168.0.1
Definition
Term
Adding more repositories to CentOs
yum install rpmforge
or download from www.dedoimedo.com
Definition
Term
extract tar into different directory:
tar xvf /data/package.tar -C /usr
or tar -xvf /data/package.tar -C /home/darkmantis/Downloads/test/
Definition
Term
VNC SERVER:
yum -y install vnc-vnc-server
vncserver :8 -geometry 1024x768 -depth 16
Definition
Term
Run first boot:
open terminal login as root
rm /etc/sysconfig/firstboot
/usr/sbin/firstboot
resets the firstboot menu to restart
Definition
Term
Configure an install server using files:
mkdir /tmp/rh
mount /media/disk (with dvd inserted)
cp -r /media/disk/* /tmp/rh/
umount /media/disk; eject /media/disk
Definition
Term
configuring an install server using disk images:
mkdir /tmp/rh
dd if=/dev/cdrom of=/tmp/rh/disk1.iso (dvd inserted)
umount /media/disk ; eject /media/disk
Definition
Term
NFS SERVER:
add an entry to the /etc/exports file to share the distribution directory you created. /tmp/rh * (ro)
Definition
restart nfs:
/etc/init.d/nfs restart
set the nfs service to be on perm.
chkconfig nfs on
Term
Mount Windows file system:
#mkdir /mnt/win
#chmod 755 /mnt/win
#mount -t ntfs /dev/sda1 /mnt/win
#chmod 75 /mnt/win
#ls /mnt/win

mount perm by adding thi to the /etc/fstab file:
/dev/sda1 /mnt/win ntfs ro 0 0
Definition
Term
fdisk -l list all partitions
df -h how it's being used
Definition
Term
if you are not able to turn on desktop effects, add this to your /etc/X11/xorg.conf file
Section "extensions"
Option "Composite"
EndSection
and
Option "XAANoOfscreenPixmaps"
Definition
Term
id = full id info
who -u -m -H < print info cuent user, -u add info for idle time, -H header printed
Definition
Term
ps u
Definition
Term
ctrl + d - exits the su account in terminal, one more will exit the terminal
Definition
Term
dm=/var/www/html ; export dm
cd $dm
Definition
Term
vi & places vi in the background.
jobs shows the suspended job 1: vi
fg 1 will bring up vi in the foreground
Definition
Term
ls -ld shows owner and attributes
Definition
Term
chmod 777 rwxrwxrwx
chmod 755 rwxr-xr-x
chmod 644 rw-r--r-
chmod 000 ---------
Definition
Term
you can turn off using a plus or minus signs on files example:
chmod a-w r-xr-xr-x
chmod a-x rwsrwsrw-
chmod go-rwx rwx------
Definition
Term
u can give permissions by adding
chmod u+rw rw------
chmod a+x --x--x--x
chmod ug+rw r-xr-x--
Definition
Term
you can change all files and directories using
chmod -R 777 /tmp/test
Definition
Term
/etc/yum.conf < preconfigured yum options
yum clean all < cleans out cache
Definition
Supporting users have an ad free experience!