Tag Archives: commands

MySQL commands

Some (often used) commands for MySQL DB…. Logging into DB : # mysql -u root -p How to show colons in table named “users” : mysql> show columns from users; How to show only some fields from table “users” : … Continue reading

Posted in Linux | Tagged , | Comments Off on MySQL commands

Linux commands, part 7

How to copy/move a large number of files from one folder to another, since Linux kernel has a inbuilt limit for commands such as “mv”, “cp”, “rm”… Example : # mv -f * /folder1/folder2/ bash: /bin/mv: Argument list too long … Continue reading

Posted in Linux | Tagged | Comments Off on Linux commands, part 7

Some neat Unix commands

How to delete a non-empty Unix folder (without going into it and deleting all the files) : # rm -r folder-name Command rmdir (which is standard for such actions) deletes only empty folders… How to untar a file : # … Continue reading

Posted in Unix | Tagged | Comments Off on Some neat Unix commands

Some neat Linux commands, part 6

When you need to transfer data from one server to another, it can be done in many ways. Here are some of them : 1. scp – secure copy – it does not keep the owner/group info for the file, … Continue reading

Posted in Linux | Tagged | Comments Off on Some neat Linux commands, part 6

Some neat Linux commands, part 3

A neat command that enables you to search the whole folder, or even a whole server, searching for a key word in file (not in the filename, but in the file itself) : # grep -H -r “key-word” /home /home/user11/test1:nmhsdav,jhvfjh,gkey-word … Continue reading

Posted in Linux | Tagged | Comments Off on Some neat Linux commands, part 3