Connection dropped by IMAP server. Query: SEARCH ALL TEXT error:
cd /home/username/imap/domain.com/user/Maildir
rm -f dovecot*
Connection dropped by IMAP server. Query: SEARCH ALL TEXT error:
cd /home/username/imap/domain.com/user/Maildir
rm -f dovecot*
-
rw-rw---- 1 abc mail 47048 Nov 30 13:23 dovecot.index
-rw-rw---- 1 abc mail 800488 Nov 30 15:34 dovecot.index.cache
-rw-rw---- 1 abc mail 28740 Nov 30 15:34 dovecot.index.log
-rw-rw---- 1 abc mail 42928 Nov 30 13:23 dovecot.index.log.2
-rw-rw---- 1 abc mail 72 Sep 25 09:35 dovecot.mailbox.log
-rw-rw---- 1 abc mail 124846 Nov 30 15:34 dovecot-uidlist
hard way (Centos 5):
for i in dove*; do mv -v "$i" "${i%}_old" ; done
simple way:
rename -v 's/$/_old/' dovecot*
-rw-rw---- 1 abc mail 800488 Nov 30 15:34 dovecot.index.cache_old
-rw-rw---- 1 abc mail 42928 Nov 30 13:23 dovecot.index.log.2_old
-rw-rw---- 1 abc mail 28740 Nov 30 15:34 dovecot.index.log_old
-rw-rw---- 1 abc mail 47048 Nov 30 13:23 dovecot.index_old
-rw-rw---- 1 abc mail 72 Sep 25 09:35 dovecot.mailbox.log_old
-rw-rw---- 1 abc mail 124846 Nov 30 15:34 dovecot-uidlist_old
another example extension renaming with for loop:
for f in *.html; do mv $f ${f%.html}.php; done
cd /usr/local/directadmin/customapache
./build update
./build clean
./build dovecot
cd /tmp
unzip /path/to/file.zip
cd foo-*
cp -r . /path/to/destination/folder
Open Sublime Text.
Select Preferences from the top menu and click Key Bindings – User.
[
{ "keys": ["f5"], "command": "refresh_folder_list" }
]
sudo sshfs -o allow_other root@server:/home/user/dev ~/dev
sudo fusermount -u /mount/path
nsenter – run program with namespaces of other processes
PID=$(docker inspect –format {{.State.Pid}}
nsenter –target $PID –mount –uts –ipc –net –pid
chcon -Rt svirt_sandbox_file_t /volume.to.docker/path
tr -dc a-z1-4 50' | tr 3-4 ' ' | sed 's/^ *//' | cat -s | sed 's/ / /g' |fmt
chfn -o umask=022 app
umask 0022 = 755 for dirs & 644 for files
umask 0000 = 777 for dirs & 666 for files
umask 0027 = 750 for dirs & 640 for files
umask 0077 = 700 for dirs & 600 for files
umask 0007 = 770 for dirs & 660 for files
apt-get install aria2
wget https://github.com/ilikenwf/apt-fast/archive/master.zip
nzip master.zip
cd apt-fast-master
cp apt-fast /usr/bin
cp apt-fast.conf /etc
cp ./man/apt-fast.8 /usr/share/man/man8
gzip /usr/share/man/man8/apt-fast.8
cp ./man/apt-fast.conf.5 /usr/share/man/man5
gzip /usr/share/man/man5/apt-fast.conf.5
curl -O https://raw.githubusercontent.com/some_file.py
cp -v /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/test.com.conf
a2ensite test.com.conf