5 subscribers
45 photos
4 files
33 links
Download Telegram
killall process_name
#cpu
#ram

cat /proc/cpuinfo
cat /proc/process_id/
watch 'command'
run command every to second

watch -n 3 'command'

#run command evry second
linx shell
#zsh ubuntu
schedule job

at : run at future time
cron: recurring job in future
terminal
ls -lah
is equal
ld -l -h -a
ls -lhS
ls -a
ls -A
dos not show shortcut directories
linux default
rm = rm -i
mkdir foldername
rmdir -f foldername
rmdir emtydir
touch filename
create and if file exist change timestamp
gerp "serchterm" filename

case insensetive
gerp -i "serchterm" filename

all line except thos contain search term
gerp -v "searchterm" filename

number of eccurance
gerp -c "serchterm" filename
find directory -name "*.txt"
find directory -size +10M
Menue Options
Open a cron jobs file with ctontab-e and
add the following line to enable daily backups:
$ crontab -e # open crontab file
@daily rsync -aze ssh ubuntu@10.0.2.50:/home/ubuntu/sampledir
/var/backup
In the preceding example, we have used a pull operation, where we are downloading files from
the remote server. Rsync can be used to upload files as well. Use the following command to
push files to the remote server:
$ rsync -azP -e ssh backup
ubuntu@10.0.2.50:/home/ubuntu/sampledir
#linux
#rscnc