su : switch to the root user
scp brcpc01.umbc.edu:~/analysis/output/parser.zip . /* download */
scp *.* hiv@bios.unc.edu:~/doc /* upload */
top : task check
yum list available
yum install packagename
yum update packagename
yum check-update
yum search
rpm -Uvh filename.rpm : install
rpm -ivh filename.rpm : install the package already installed
rpm-ivh --replacefiles filename.rmp : conflicting files
rpm -qa | grep R : check if R is installed or not
rpm -e foo : uninstall foo
rm -r cahn/ : deltree the directory cahn/
rm -rf cahn/ : deltree the directory cahn/
tar -cf archive.tar foo bar : Create archive.tar from files foo and bar.
tar -tvf archive.tar : List all files in archive.tar verbosely.
tar -xf archive.tar : Extract all files from archive.tar.
tar cvf cahn.tar cahn/ : cahn/ directory and all its subdirectories -> cahn.tar
gzip filename : compress a file as filename.gz
gunzip filename : uncompress
gzip -d filename : uncompress
gzip -r filename.gz file1 file2 file3 /cahn/redhat
zip -r filename.zip filesdir
upzip filename.zip
zip -r filename.zip file1 file2 file3 /cahn/redhat
vim .bash_profile : to add the directory to my PATH
source .bash_profile : activation
cat text_file_name : view
cat > filename : make text file, [Ctrl]-[D] to quit
cat f1 f2 > f2 : concatenate files
cat f1 >> f2 : append f1 to f2
head -20 filename
tail -20 filename
grep tar manual : find "tar" in the file "manual"
/usr/share/doc : documentation for packages installed
mount /mnt/cdrom
umount /mnt/cdrom
man ls : manual for the command "ls"
ls : -a, -l, -F(file type),-r(reverse), -R(recursive), -s(size)
ls | more, ls | less
locate finger : locate the files and directories with the word "finger"
history | grep man : a history of all the commands with the word "man"
# Access to the hard in Windows system
Accessing a Windows Partition (should be FAT32)
login as root (su)
mkdir /mnt/data
mount -t vfat /dev/hda5 /mnt/data
cd /mnt/data
To automatically mount a windows partition every time
login as root (su)
vim /etc/fstab
Add the following on a new line (replacing /dev/hda1 with the Windows partition you found via Hardware Browser):
/dev/hda5 /mnt/data vfat auto,utf8,umask=0 0 0
# Change the default boot
su
cd /etc
vim grub.conf
default=0 # 0 -> 1
# Chage the default system session to KDE
edit /etc/sysconfig/desktop
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment