Linux CLI 36 ๐ง xargs and touch commands
a - xargs command
xargs reads reads from standard input and execute a command
you can use it to perform operations in multiple files or directories
echo "hello world" | xargs echo @ โ reads the string and and add it to echo
ls -d */ | xargs ls -lh @ โ reads all directories and list them with long and human readable format
xargs -a aaa.txt โ like cat command displays the contents of a file
common commands: -L โ limits the input lines per command
-P โ runs multiple commands in parallel -I โ replaces `@` with each input line as an argument instead of whitespace
b - touch command
touch is used to create new empty files
it is also used to update the timestamp of a file
It can do the above for one or multiple files
touch my.txt โ creates an empty file
if the my.txt exists then it updates its timestamp
touch my1.txt my2.txt โ creates empty files
touch myfile{1..5}.txt โ creates 5 files using wildcards
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!