I have wrote the script, unluckily it has created an text file with name that contains special character '-' as below:
@cattek Scripts]$ ls
configuration.sh -P rsysnc.sh
I don't like it, it shouldn't stay here. I try to delete:
@cattek Scripts]$sudo rm -rf '-P'
Outputs:
rm: missing operand
Try `rm --help` for more information
The rm command failed to delete that. Finally...
[HOW TO] Google Driver Image not showing up on website
I change the theme blog for her. It's not hard to make decisions when she know what she like.
I quickly apply the new theme.
The new theme looks like better than old theme. I try to change a bit to reach the good view. Of course, it is a my view point. And I hope her too like.
...
I want to change her profile picture and BUM, image not showing up on Blogger. Humn, what the the next action?
It...
[HOW TO] Restrict SSH connection
In afternoon I thought about restriction ssh Linux server. I know exactly the incoming ssh, therefore I have to restrict to improve secure system.
Secure system is not easy, it's hard to say that you completely control everything on system. With me, it combines of system, network, people, process.
And day-by-day you also learn/ practice and practice, join the community to discuss and update...
[HOW TO] remove shortcut from application menu in Elementary OS/ Ubuntu/ Kubuntu/ Xubuntu

Today is a Saturday, I get up lately. I have a breakfast, and now I stay at home. Turn on the laptop, and I see many icons in Application Menu in Elementary OS.
I do not like this. I always like simple menu.
What is solution to remove?
Google, I see Main Menu as known as Alacarte. So I have to...
How to fix "The AC power adapter wattage and type cannot be determined. The battery may not charge."
I have a Dell Latitude E6330 and recently I got to see the notification related battery when I boot up the computer:
The AC power adapter wattage and type cannot be determined. The battery may not charge. The system will adjust the performance to match the power available.
What's happened?Battery?Adapter?
What is the easiest to check?
I remove the battery from laptop. Then laptop starts to...
Hãy tự đặt cho bản thân những câu hỏi này (trong bài viết)
Tiêu đề bài viết đã được thay đổi theo chủ đích của tôi các bạn ạ (bài viết gốc, ở cuối có đường dẫn cụ thể). Tôi nghĩ bài viết này không chỉ áp dụng cho sinh viên mới ra trường, nó áp dụng cho tất cả chúng ta để có mấy phút ít ỏi trong ngày nhìn lại và căn dặn lại mình.
...
Mấy ngày vừa qua, câu hỏi làm thế nào để có mức lương khởi điểm là 2.000 USD của nữ sinh Học viện Kỹ thuật...
Lại nói về Năm Mức Ngu Dốt
Sáng nay, cậu em tôi gửi một bài viết về "năm mức ngu dốt". Cách đây chắc 3 năm, đã có lần chính cậu nói về bài này với tôi và mấy anh em ngồi gần.
"Thông minh" và "ngu dốt" hai gã tưởng chừng đối lập mà lại tương hỗ nhau. Biết ngu dốt để làm động lực cho thông minh. Cá nhân tôi nghĩ năm mức ngu dốt này sẽ theo cả cuộc đời, cho đến khi nào không còn muốn thu nạp kiến thức nữa.
May mắn sẽ...
What is the difference between UNIX SOCKET and TCP/IP SOCKET?
UNIX SOCKET is an inter-process communication mechanism that allows bidirectional data exchange between process running on the same machine.
IP SOCKET (especially TCP/IP socket) are a mechanism allowing communication between processes over the network.
Above paragraph to take note. I'm going to find deeply out about this.
Source: serverfault.com
Thank you for reading this article, please a comment...
[HOW TO] install brightness indicator in Elementary OS/ Ubuntu/ Kubuntu/ Xubuntu
I had a great time in coffee shop yesterday evening.
That is the first time I came here. It looks like warm coffee shop with a blue windows, the small light, small chair, table and a lot of best singer.
I have to turn on laptop, but the brightness of laptop is very high. It is not suitable here. I am a polite man lol. So I need to slow down the brightness of laptop. But Elementary installed on Xiaomi...
[HOW TO] ts: command not found and how to fix?
Hi Everybody,
I have been writing the script to get latency networking. And I have a interesting thing. So, here is a part of script:
#!/bin/bashwhile true; do ping -w 3600 example.com | ts '%Y-%m-%d %H:%M:%S |' | tee -i -a /home/cattek/Scripts/Logs/ping.logdone
ts: command not found
What is "ts"? to simplify...
Chào tháng 12,
Chào mọi người,
Tôi rất vui vì gần 4 năm qua nhận được sự quan tâm của mọi người, có người tìm đến blog này từ google, có người từ facebook, và cũng có những người bạn âm thầm ủng hộ.
4 năm đi qua, đã có nhiều thay đổi, về con người, về cả thời gian và không gian. Tối nay trên đường đi làm về, tôi nghĩ suy về giai đoạn mới cho blog này. Không đơn thuần là những bài viết ngắn dạng "làm thế nào"...
[HOW TO] reset MySQL root password on Linux
In this article I will show you how to reset MySQL root password.
Step 1: Stop MySQL server
/etc/init.d/mysql stop (systemd)systemctl stop mysqld (systemv)
Step 2: Start MySQL configuration
mysqld --skip-grant-tables &
Step 3: Login MySQL as root without password
mysql -uroot mysql
Step 4: Replace NEWPASSWORD
mysql>UPDATE user SET Password=PASSWORD('YOUR_PASSWORD') WHERE User='root';
mysql>FLUSH...
[HOW TO] Cisco SX20 : receiving incoming calls from unknown sources
Hi, We are using a Cisco SX20, this is working fine. But, the only problem is the fact there are a lot of unknown established calls. I told service provider, and they said me: the attacker scans port SIP on the internet to attack internal LAN.Hummmm,Googled, I known, my device is being probed by a SIP Scanner such as SIP Vicious.
4 days ago, I try to OFF DoNotDisturb Mode in SX20 Web Configuration....
[HOW TO] view a list of MySQL users and privileges
Today, developer request for me about grant the privileges. And developers has user existing on Database.
Easy,
I only add more permission for them. To find out all MySQL users and the permissions granted to each user, log in to MySQL server, and run the following MySQL command.
To get a list of MySQL users:
mysql>select user,host from mysql.user;
To find the privileges granted to a particular...
[HOW TO] What is the interrupt key for Linux command?
If you are Linux user, some times you get the "Waiting for data ... (interrupt to abort)" message on Linux terminal.
What is the interrupt? nothing seems to work, you can not continue. Also you can kill the terminal which is a pain. Or simplicity Ctrl + C to fine.
I don't like it, however I also don't how to kill it?
Google around and I see the solution: Ctrl + shift + c to...
Updating disk free size without rebooting the host | How to clean /tmp
I'm having the issues with /tmp/ directory, it is full and Now I must to release to zero. Luckily I have done.
When a file is removed/ deleted/ unlinked, if it is still held open by any process then only the directory entry for the file is erased, not the file's data. When the file is completely closed by all process the data is returned to the free space pool. It's a feature since you can have...
[HOW TO] can I stop being prompted to unlock the 'default' keyring on boot?
Use this if you have forgotten the old password and is ok to delete items in the old keyring, but want to safeguard new keyring with matching password.
For Ubuntu 14.04, I used the following.
Remove old keyring:
cd .local/share/keyrings/
rm *.keyring
Restart the system to have the new keyring created:
sudo shutdown -r now
Verify the new keyring exists:
cd .local/share/keyrings/
ls...
[HOW TO] force nginx to send specific Content-Type when using alias
hi,
Long time no see,
I want to force nginx to send specific Content-Type for one paragraph. How to?
Last time, I can not change it, when I curl -I, it shows Content-Type: application/octet-stream;
And I want it to be:
Content-Tyoe: application/json;
Finally, I set it as:
location /me/api/versions {
default_type application/json;
...
[HOW TO] update CentOS server's time from an standard server time
Today I get the alert from monitoring system about time server is in-correct.
Is there a mechanism whereby I can update the server with the time from a specific time server?
Yes, I do.
You only follow below instruction:
yum install ntpchkconfig ntpd onntpdate pool.ntp.org/etc/init.d/ntpd start
My server is running with CentOS.
Thank you for reading this article, please a comment if you are interested.
Tiến...