Tag:find

  • The file /boot/grub/stage1 not read cor solution

    Time:2022-6-13

    It was reloaded the day before yesterdayoperationsystem, grub is also overwritten. In order to restore startup, I took a live CD of Ubuntu and started it. After entering Linux, I entered the command line to restore grub. First mount the original / partition sudo mkdir /mnt/root sudo mount /dev/sda7 /mnt/root sudo mount -t proc none […]

  • Linux system modifies the size of pictures in batches with commands

    Time:2022-4-29

    Taking photos often requires reducing the size of a large number of photos to facilitate online transmission or storage.   Here is a simple methodmethodChange a large number of photos to the specified size   find ./ -name ‘*.jpg’ -exec convert -resize 600×480 {} {} \;   Note the space and the last semicolon. The […]

  • Find command usage under Linux

    Time:2022-1-26

    The find command under Linux searches for files in the directory structure and performs the specified operation. The find command under Linux provides quite a lot of search conditions, which is very powerful. Because find has powerful functions, it has many options, most of which are worth our time to understand. Even if the system […]

  • Method of batch searching files and file contents in Linux system

    Time:2022-1-25

    For example, find a keyword in all PHP files under the current directory Copy code The code is as follows: find ./ – Name “*. PHP” | xargs grep ‘keyword’ If the content to be searched contains special symbols, such as $and so on, grep needs to add parameters Copy code The code is as […]

  • SMPlayer plays WMV and avi files with arrows. Solution

    Time:2022-1-13

    SMPlayer is a super easy-to-use player in Linux. There is no software in windows to compare with it Its real – time drag – and – drop function is completely delay – free Super strongHowever, there is a small problem recently. Watching the video, I found some arrows in the image It feels like a […]

  • Some points for attention when using the find command in Linux

    Time:2021-11-26

    If the – path parameter is used in the find command, the file name matches the shell wildcard pattern. At this time, the metacharacter cannot recognize ‘/’   And ‘.’   。 for instanceSuppose there are four files in the / root directory, and their absolute paths are: Copy code The code is as follows: […]

  • Method of using find command to find hidden files in Linux

    Time:2021-11-25

    We can use the find command on Linux or UNIX systems to query all (all) hidden files The basic syntax is as follows: Copy code The code is as follows: [ [email protected] ~]#Find / file / folder to find / – name “. *” – Print Explanation: 1. “. *” indicates the file name to […]

  • Methods of cleaning files and environment variables in Linux system

    Time:2021-6-11

    Use the find command to help you find the files that need to be cleanedOne problem that plagues almost all file systems — UNIX and others — is the accumulation of files. Few people are willing to spend time cleaning up the files they no longer use and reorganizing the file system. As a result, […]

  • Linux file search and other basic commands (3)

    Time:2021-4-2

    1. Linux contains a large number of files, for file search, Linux provides the find command. Find is a very effective tool. It can traverse the target directory or even the entire file system to find some files or directories find [path…] [expression] amongexpressionThere are three types: options, tests and actions. Multiple expressions are separated […]

  • A brief overview of find command in Linux

    Time:2021-2-6

    Under Linux, the find command searches for files in the directory structure and performs the specified operation. The find command under Linux provides quite a lot of search conditions, which is very powerful. Because of its powerful function, find has many options, most of which are worth our time to learn about. Even if the […]

  • Exec of Linux find command

    Time:2021-2-5

    Find is a Linux command that we often use, but what we usually find out is not just a look, but also further operation. At this time, the function of exec is revealed. Exec explains: -The exec parameter is followed by the command, whose termination is marked by;, so the semicolon after the command is […]

  • A brief overview of xargs in Linux find command

    Time:2021-2-4

    When using the – exec option of the find command to process the matched files, the find command passes all the matched files to exec for execution. However, some systems have restrictions on the length of the command that can be passed to exec, so that an overflow error will occur after the find command […]