1. To Delete a Directory
with View: rm -rvf .\
without View: rm -rf .\
2. To Tar a Directory
With View: tar –cvzf.tar ./
Without View: tar -cf.tar ./
e.g. To tar Android folder #tar –cvzf android.tar ./android
3. To UnTar a Directory
With View: tar -xvf.tar
Without View: tar -xf.tar
e.g. To Untar Android folder #tar -xvf android.tar
4. To Mount a N/W Drive:
Step 1: Make a folder in Windows drive, share that & provide read/write premission e.g. "androidsrc" folder is created in Windows drive & same is shared also with R/W premissions.
Step 2: Make a folder in Linux System that you want to mount to Windows system e.g. "test" folder is created in Linux Machin.
Step 3: Go to Linus PC & Run below mentioned command
smbmount /// ./
e.g. smbmount //10.168.82.159/androidsrc ./test
5. To Remove Some files from a Folder Structure:
e.g. remove all git & gitignore files from Android folder (it will remove all git files)
.../Android$ find ./ -name ‘.git’ xargs rm –rvf
.../Android$ find ./ -name '.gitignore' xargs rm -rvf
6. Set IP:
sudo ifconfig eth0 <IP>
7. Set Gateway:
sudo route add default gw <gw-IP> eth0
8. To check IP:
ifconfig
e.g. To set IP (192.168.100.105) & Gateway (192.168.100.1)
sudo ifconfig eth0 192.168.100.105
sudo route add default gw <192.168.100.1> eth0
p.s.: eth0 is for default Network card. So, by using eth0; mentioned IP & Port will be set for LAN.
with View: rm -rvf .\
without View: rm -rf .\
2. To Tar a Directory
With View: tar –cvzf
Without View: tar -cf
e.g. To tar Android folder #tar –cvzf android.tar ./android
3. To UnTar a Directory
With View: tar -xvf
Without View: tar -xf
e.g. To Untar Android folder #tar -xvf android.tar
4. To Mount a N/W Drive:
Step 1: Make a folder in Windows drive, share that & provide read/write premission e.g. "androidsrc" folder is created in Windows drive & same is shared also with R/W premissions.
Step 2: Make a folder in Linux System that you want to mount to Windows system e.g. "test" folder is created in Linux Machin.
Step 3: Go to Linus PC & Run below mentioned command
smbmount ///
e.g. smbmount //10.168.82.159/androidsrc ./test
e.g. remove all git & gitignore files from Android folder (it will remove all git files)
.../Android$ find ./ -name ‘.git’ xargs rm –rvf
.../Android$ find ./ -name '.gitignore' xargs rm -rvf
sudo ifconfig eth0 <IP>
7. Set Gateway:
sudo route add default gw <gw-IP> eth0
8. To check IP:
ifconfig
e.g. To set IP (192.168.100.105) & Gateway (192.168.100.1)
sudo ifconfig eth0 192.168.100.105
sudo route add default gw <192.168.100.1> eth0
p.s.: eth0 is for default Network card. So, by using eth0; mentioned IP & Port will be set for LAN.