I'm trying to open a file with vim from the command line, the file is in a directory filled with automatically generated files that are prepended with a time stamp. Since I don't know the time stamps ...

I am using MySQL database on Ubuntu machine.
My MySQL data directory is /var/lib/mysql/ , since I have a database named "db_test" , so, I have a directory named db_test/ under /var/lib/mysql/ . And ...

I would like to specify a range of files (in lexicographical order) with two integers (e.g. 2 to 57) in zsh by globbing.
For example: "pick the files 2 to 57 in lexicographical order under the path ...

I am working through SSH on a WD My Book World Edition. Basically I would like to start at a particular directory level, and recursively remove all sub-directories matching .Apple* - how would I go ...

I know rsync has an --exclude option which I use quite frequently. But how can I specify that it should exclude all "numeric" directories?
In the directory listing below I would like to only have it ...

If I don't want to have to download the files found in a specific url path manually, what options do I have? Using wildcards fail:
$ wget 'http://www.shinken-monitoring.org/pub/debian/*deb'
Warning: ...

I followed the advice given in the question
Rsync filter: copying one pattern only to setup a command line I need to backup only the dotfiles .inF*
Yet with the command:
rsync -av --include='.inF*' ...

I want to assign the result of an expression to a variable and concatenate it with a string, then echo it. Here's what I've got:
#!/bin/bash
cd ~/Desktop;
thefile= ls -t -U | grep -m 1 "Screen Shot";
...

I'd like to do the following:
Get the number of files in a given directory that match a given pattern, for example:
ExtractBackup_{date}.tar.gz
If that number is 2 or higher, delete the oldest file ...

In a BASH shell, I would like to take the lines of a file (eg pattern.txt) and find the files on my system whose names contain the patterns in each line of my file. So, I have the following for loop
...

I wanted to declare an environment variable that stocks all the extensions of video files so I can use it when using the shell.
I tried several things but never got it to work:
If in my .bash_profile ...