Linux Basic Commands
For changing directory / to /etc
- [root@semakness /]# cd /etc
- [root@semakness etc]# cd ..
- [root@semakness /]# cd -
- [root@semakness etc]# cd ~
- [root@semakness ~]# dir /etc
- [root@semakness ~]# Ls /etc
- [root@semakness ~]# mkdir /disk
- [root@semakness ~]# mkdir /disk/dir
- [root@semakness ~]# mkdir /etc/dir1 /var/dir2 /usr/dir3
- [root@semakness ~]# mkdir dir1 dir2 dir3
- [root@semakness disk]# cp file dir
- [root@semakness disk]# cp /disk/file /disk/dir
- [root@semakness disk]# cp -r dir dir2
- [root@semakness disk]# cp /disk/file /etc/myfile
- [root@semakness disk]# rm file
- [root@semakness disk]# rm –f file
- [root@semakness disk]# rm dir
- [root@semakness disk]# rm -r /disk
- [root@semakness disk]# rm -rf dir
- [root@semakness disk]# mv /etc/dir1 /disk/mydir
- [root@semakness disk]# mv /disk/mydir /disk/dir
- [root@semakness disk]# mv file myfile
- [root@semakness disk]# less /etc/grub.conf
- [root@semakness disk]# more /etc/qrub.conf
- [root@semakness disk]# head /etc/grub.conf
- [root@semakness disk]# tail /etc/grub.conf
- [root@semakness disk]# head -n 12 /etc/grub.conf
- [root@semakness disk]# tail -n 11 /etc/grub.conf
- [root@semakness disk]# cat /etc/grub.conf > /disk/file
- [root@semakness disk]# cat /etc/mtab >> /disk/file
- [root@semakness disk]# cat /etc/squid/squid.conf I more
- [root@semakness disk]# cat /etc/squid/squid.conf I wc -L
- [root@semakness disk]# cat /etc/squid/squid.conf I grep spool
- [root@semakness disk]# cat /dev/null > /var/log/messages
Category: Tips and Tricks, Ubuntu
good basic of linux**
thank for sharing**
blogwalking with us