Comments on Linux touch Command Tutorial for Beginners (6 Examples)

Sometimes, while working on the command line in Linux, you might want to create a new file. Or, there may be times when the requirement is to change the timestamps of a file. Well, there exists a utility that can you can use in both these scenarios. The tool in question is touch.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: kripa

Thanks for this post, it really helped me on my project work.

By: Govin

I KEEP GETTING THIS ERROR. CAN YOU HELP ME OUT PLEASE

Error executing command "touch -c /home/debian/Mip_Balance_Demo_ert_rtw/*.*;make -f Mip_Balance_Demo.mk all -C /home/debian/Mip_Balance_Demo_ert_rtw". Details: STDERR: In file included from /usr/include/robotcontrol.h:36:0, from /usr/include/roboticscape.h:11, from fccr_bbblue_driver.h:26, from fccr_imu.c:9: /usr/include/rc/i2c.h:104:49: error: unknown type name ‘size_t’ int rc_i2c_read_bytes(int bus, uint8_t regAddr, size_t count, uint8_t *data); ^~~~~~ /usr/include/rc/i2c.h:133:49: error: unknown type name ‘size_t’ int rc_i2c_read_words(int bus, uint8_t regAddr, size_t count, uint16_t* data); ^~~~~~ /usr/include/rc/i2c.h:163:50: error: unknown type name ‘size_t’ int rc_i2c_write_bytes(int bus, uint8_t regAddr, size_t count, uint8_t* data); ^~~~~~ /usr/include/rc/i2c.h:194:50: error: unknown type name ‘size_t’ int rc_i2c_write_words(int bus, uint8_t regAddr, size_t count, uint16_t* data); ^~~~~~ /usr/include/rc/i2c.h:214:32: error: unknown type name ‘size_t’ int rc_i2c_send_bytes(int bus, size_t count, uint8_t* data); ^~~~~~ make: *** [fccr_imu.c.o] Error 1 STDOUT: make: Entering directory '/home/debian/Mip_Balance_Demo_ert_rtw' gcc -c -MMD -MP -MF"fccr_imu.c.dep" -MT"fccr_imu.c.o" -O0 -D_roboticscape_in_use_ -D_RTT_DCMOTOR_INUSE_ -D_RTT_ENCODER_INUSE_ -DMODEL=Mip_Balance_Demo -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DSTACK_SIZE=64 -DRT -DMODEL=Mip_Balance_Demo -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I./ -o fccr_imu.c.o fccr_imu.c Mip_Balance_Demo.mk:439: recipe for target 'fccr_imu.c.o' failed make: Leaving directory '/home/debian/Mip_Balance_Demo_ert_rtw'

By: Chacletto

Everybody explains the same things but nobody explains what exactly do acces, modification and change times mean; whre is the creation time; and what is the "birth" word, or attribute doing there.