linux - who is logged in?
Open a shell and try the following command:
whoThe output shows you the user, the console he is using, the datetime when he logged in and so on.
Some usefull links: lowfatlinux.com thegeekstuff.com
Open a shell and try the following command:
whoThe output shows you the user, the console he is using, the datetime when he logged in and so on.
Some usefull links: lowfatlinux.com thegeekstuff.com
Just a quick entry for the zend framework comand line tool (available for *nix and windows). I tought it would be a good idea to use it and create the general files or directory layout. But it is not perfect at all. Creating modules and layouts is quick nice. But a
zf create controller myModuleNamedoes not what i have expected. An controller was created below the general controller directory and not inside the module "myModuleName". Lets see if i like the tool at all. I will stick on it for this project and fill up the links in the following section when i find some usefull one. I can give one hint so far, the zend tool can only create, not delete anything. If you want to delete something, you have to do it manualy (remember the zfproject.xml file).
available parameters for application.ini official zend tool manual using the cli tool create a layout zend tool in phpstorm zend framework as cli application tutorial from akrabat Proposed Q&A site for PHP developers using Zend Framework 1 and Zend Framework 2
First of all, you have to install "sshfs". After that you just have to type.
sshfs $user@$host:/path/to/dir /path/to/mountIf fuse throws an error of permission, you have to add your user to the group fuse by typing:
usermod -a -G fuse $userAfter you re-logged-in you can see by typing "groups" in your shell that everything is done fin. Do not want to logoff? Try
su $userin your shell. This is a new login and so your new group is available now. Just another hint, if you want to access symbolic links, try:
-o follow_symlinksand/or
-o transform_symlinksThe man page will help you to understand what you are doing. Now put everything as an alias in your bashrc (or something similar) and you are done :-).
alias mountMyShare="sshfs $user@host:/path/to/dir /path/to/mount -o follow_symlinks"; alias umountMyShare="fusermount -u /path/to/mount";Happy mounting and unmounting.
Long story short, here is the script.
#!/bin/sh for f in \*.rar do mkdir ${f%.rar} unrar e $f ${f%.rar}/ doneWhat does it? For every *.rar file in you current directory, a subdirectory will be created by using the filename except of '.rar'.
Just use this script on your command line.
sh ~/my/path/to/the/script.shThats it, have fun :-).
It should not be that problem to adapt this script to other types of archive.
Want to know more about bash scripting and string manipulation? Try to check the following links. string manipulation special parameters