use the other folder permission as reference. Here, changing the permission of all files in folder to the permission similar to the parent folder.
chown –reference=. ./*
use the other folder permission as reference. Here, changing the permission of all files in folder to the permission similar to the parent folder.
chown –reference=. ./*
easier than editing .ssh/authorized_keys file.
ssh-copy-id user@host
find the zombie processes.
ps aux | awk ‘$8 == “Z” { print }’
find the package name of the $file from the apt repository.
apt-cache search $file
$ find . -type f -print0 | xargs -0 stat -c’%Y :%y %12s %n’ | sort -nr | cut -d: -f2- | head
Will go through all the files in the directory specified, uses `stat` to print out last modification time, then sorts numerically in reverse, then uses cut to remove the modified epoch timestamp and finally head to only output the last 10 modified files.
Whats running on this port.
$ sudo netstat -tulpn | grep :portnumber
This is how we can get the mac addresses of all the interfaces on the system.
$ /sbin/lspci -v | grep -i “Device Serial Number”
1. To tweet.
2. To Blog.
3. As a personal todo and task taker using org-mode.
4. As an IRC Client.
5. As a text based web browser.
6. As an MUA(Mail User Agent).
7. As a shell terminal.
8. As a file manager.
9. Using github as version control.
10. Last but not the least as an editor, to code and do things amazingly. Take the tour.
This post is being posted by webblog.el module of emacs.
Was looking for a emacs clone on ipad, but it seems emacs uses lots of lisp and as per Apple’s store policies, can’t have an application on iPhone and IPads which uses code which can internally execute processes or may traverse across the application boundaries or the internals of the system, hence emacs is not ported and after some googling I figured out it never will be since, emacs does believe in the freedom and Apple otherwise.
Though, I manage to download vim clone for ipad(and I am sure vim does uses some scripts).
Was using emacs from quite sometime as my primary editor for two reasons one as to learn more about emacs as an editor and two a wonderful platform to do many things. And during my learning curve came across this page created by “Wenshan” and this list is just amazing.
mơ bắt cá 1
But of course using emacs will not end up making me a great programmer, so these relatively known people and me might only thing in common is we used emacs at some point of time(or may have kept using).
I use this primarily to pop up something while I am usually working on doing some coding and need a reminder.
zenity –info –text “Remember the milk”
This pops up a window telling me what to do. Setting this with “at” helps me schedule it too.
Summary of disk usage, excluding other filesystems, summarised and sorted by size
du -xks * | sort -n
curl http://en.wikipedia.org/wiki/List_of_programming_languages | grep "li>" | awk -F"title=" '{ print $2 }' | awk -F\" '{ print $2 }'
list all programming launguages
$ ps axu | grep [a]pache2
grep processes list avoiding the grep itself
$ data:text/html, <html contenteditable>
It doesn’t save your notes, but it’s great for jotting something down quickly.
php -S 127.0.0.1:8080
You must have PHP 5.4.0 or later to be able to run the built in server.
This web server is designed for developmental purposes only, and should not be used in production.
$ date –set=”$(ssh user@server ‘date -u’)”
$ ps -eo pid,lstart,cmd
Alternatively you can also use,
$ ls -l /proc/pid
dig +short txt .wp.dg.cx