Sounds like you want the sync command, or the sync() function.
If you want disk cache flushing: echo 3 | sudo tee /proc/sys/vm/drop_caches
Related Contents:
- Looping through the content of a file in Bash
- How to redirect output to a file and stdout
- What is the difference between buffer and cache memory in Linux?
- an htop-like tool to display disk activity in linux [closed]
- How do I request a file but not save it with Wget? [closed]
- What Process is using all of my disk IO [closed]
- How to call cURL without using server-side cache?
- How to check disk I/O utilization per process?
- Linux – How can I see what’s waiting for disk IO
- Measuring ‘total bytes written’ under Linux
- How to identify I/O bottlenecks on a Linux server?
- How can I monitor network I/O usage per process under Linux?
- kworker consuming +90% IO and zero disk write
- Determining which process is causing heavy disk I/O?
- Is there a way to get Cache Hit/Miss ratios for block devices in Linux?
- Why CPU spent time on IO(wa)?
- Total I/O cost of a process
- What creates CPU I/O wait but no disk operations?
- How does Linux handle concurrent disk IO?
- Linux: When to use scatter/gather IO (readv, writev) vs a large buffer with fread
- Is it safe to delete the journal file of mongodb?
- Difference between POSIX AIO and libaio on Linux?
- SSH on Linux: Disabling host key checking for hosts on local subnet (known_hosts)
- How to read just a single character in shell script
- Why doesn’t perf report cache misses?
- Is there a command to list all Unix group names? [closed]
- How to write multiple line string using Bash with variables?
- How to gzip all files in all sub-directories into one compressed file in bash
- Linux command to translate domain name to IP [closed]
- How to build & install GLFW 3 and use it in a Linux project
- How to give arguments to kill via pipe [duplicate]
- How to cd into a directory with this name “-2” (starting with the hyphen)?
- how to disable SSH login with password for some users?
- Is it possible to detach a process from its terminal? (Or, “I should have used screen!”) [duplicate]
- How can I port forward with iptables?
- Using rsync’s archive flag without copying symbolic links
- SCP transfer only modified files
- How do I differentiate “fake RAID” from real RAID?
- Which database server scales better: PostgreSQL or MySQL?
- Change Windows AD password from Linux
- Possible to get SSD TRIM (discard) working on ext4 + LVM + software RAID in Linux?
- Putting a process in the background without stopping it – (ctrl+z)? [closed]
- Difference between chroot and jail
- systemd script for starting my app server – Unknown lvalue ‘StartLimitIntervalSec’ in section ‘Unit’
- In a large Linux only network how would you handle Authentication and User management?
- Specify the from user when sending email using the mail command
- Append text to file from command line without using io redirection
- Where does Eclipse look for eclipse.ini under Linux
- Why do we need a swapper task in linux?
- Checking if a Screen of the Specified Name Exists