0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Linux コマンド

Last updated at Posted at 2020-06-29

check free space

df -h

search file

grep -r UIWebView .

search && replace sting

grep -rl 'windows' ./ | xargs sed -i 's/windows/linux/g'

#delete all files with a given extension
find . -type f -name '*.meta' -delete

list file permission

ls -l

unzip

unzip file.zip -d destination_folder

rename allfile extension

for x in *; do mv "$x" "${x%}.png"; done

zip file

zip zipfoldername -r dir
zip -r file.zip file

find file

find . -name "xxx.png"

move types of files into one folder

find . -name "*.png" -exec mv "{}" ../../../png/ \;

reboot

sudo reboot

copy files less than 100mb

cd src_folder && find ./folder -size -100M -exec cp -r {} ../new_folder/ \;

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?