Ignoring whitespace changes with svn diff

svn diff --diff-cmd `which diff` -x "-w"

Find any regular files with the criteria -type f, and those modified seven or fewer days ago (-mtime -7).

find / -type f -mtime -7 | xargs tar -rf *.tar

لینوکس شریف سیستم عاملی ایرانی

find . -exec grep -l ‘foobar’ {} \; 2>/dev/null
find $root -name $filename -exec grep -l ‘something’  {} \; 2>/dev/null

Enable WPA Wireless in Ubuntu

Update the source list run the following command
$ sudo apt-get
$ sudo apt-get install wpasupplicant
$ sudo apt-get install network-manager-gnome network-manager

Comment out everything other than “lo” entries in that file and save the file
$ sudo vi /etc/network/interfaces

Create a file called /etc/default/wpasupplicant, add entry ENABLED=0 and save the file
$ sudo touch /etc/default/wpasupplicant

Reboot the system or use the following command
$ sudo /etc/init.d/dbus restart

Tips & Trick

autoupdate: sudo aptitude autoclean
format a new partition as ext3 file system:  sudo mkfs -t ext3 /dev/sdb1
create a new mount point: sudo mkdir /media/mydrive

UserName is not in the sudoers file.

restart the computer with recovery mode.
Select “drop me to root prompt” or some message like this…
Type visudo. this will open /etc/sudoers and add the line…
Username ALL = (ALL) ALL

Save the file and reboot pc.
shutdown -r now

How do I kill zombie process?

# ps aux | awk '{ print $8 " " $2 }' | grep -w Z

Z 26731
Z 26866

You cannot kill zombies, as they are already dead.
But if you have too many zombies then kill parent process or restart service.

How to find parent process?

Another option is the pstree command to show an ascii tree representation of the processes.
You’ll probably want the -p option to show process ids.
# pstree -p | less


How to rotate a PDF file?

N: 0, E: 90, S: 180, W: 270, L: -90, R: +90, D:+180.

pdftk in.pdf cat 1-endS output out.pdf

  • S (south): 180 Grad
  • E (east): +90 Grad
  • W (west): -90 Grad

7 Responses to “Linux”

  1. cina, 22. December 2010, 14:04

    FIND and GREP Combination.
    Using find and grep together:

    find ./* -exec grep -l -i “site Overview” {} \;

  2. Augustine, 31. May 2012, 7:21

    which theme is the best   for  WPCAREERS because I have been trying all the themes but is not working. Please help. Thanks

    here you will find some themes,
    which are already modified to use for wpcareer plugin:

  3. adam henson, 4. August 2012, 6:21

    Very useful codes for the unbuntu wpa. thank you

  4. nexus wireless charger, 19. March 2014, 11:58

    thanks for these very useful codes on how to kill zombie process abd wpa for ubuntu

  5. aji, 11. January 2016, 1:32

    Thank You I Like This Four You

  6. thala ajith, 30. March 2016, 21:19

    very informative

  7. Alat Bantu Seks, 1. October 2016, 20:46

    Very Good All

Post your comment





See more website here...

  • Odlinks
  • Farsi-News
  • Advertise Here
  • Advertise Here