# port 9600
sudo lsof -i :9600
sudo kill 41789
sh index.sh
# check processes
ps -aux|grep <process-name>
# kill a process
kill -9 <process-id>
# check all fluent-bit process
ps -aux|grep fluent-bit
# kill fluent-bit instance
kill -9 <process-id>
# note process is killed
Create new file index.sh add below code
#!/bin/sh
echo "Hello World"
sudo chmod +x ./index.sh
sudo nohup ./index.sh &
mv oldfile.txt newfile.txt
Use the rmdir or rm -d command to remove empty directories.
Use the rm -r command to remove non-empty directories.
delete all except ad-demo folder
ls /data/ | grep -v "ad-demo" | xargs rm -r
curl -s https://artifacts.elastic.co/downloads/logstash/logstash-8.7.1-linux-x86_64.tar.gz | tar xz
cp -R path_to_source path_to_destination/
cp ./DirectoryA_1/README.txt ./DirectoryA_2
add this line on the top of the .sh file
#!/bin/bash
PROMPT_DIRTRIM=1




