Exits the current batch script or the Cmd.exe program (that is, the command interpreter) and returns to the program that started Cmd.exe or to the Program Manager. http://en.wikipedia.org/wiki/Exit_(command) Edison, Thomas: Electricity and Progress http://www.freeinfosociety.com/media/sounds/75.mp3
Category Archives: operating system
exit
Exits the current batch script or the Cmd.exe program (that is, the command interpreter) and returns to the program that started Cmd.exe or to the Program Manager. http://en.wikipedia.org/wiki/Exit_(command) Edison, Thomas: Electricity and Progress [audio:http://www.freeinfosociety.com/media/sounds/75.mp3]
The fc command lists, edits, or re-executes commands previously entered to a shell
fc is used to list or edit and re-execute commands from the history list. FIRST and LAST can be numbers specifying the range, or FIRST can be a string, which means the most recent command beginning with that string. $fc -l 2048 git commit -am “work” 2049 git push -u origin master 2050 ls 2051 …
fc
Compares two files and displays the differences between them. http://en.wikipedia.org/wiki/File_comparison
flock
http://en.wikipedia.org/wiki/File_locking#Linux http://www.thinkage.ca/english/gcos/expl/c/lib/fileno.html
Example of split – split a file into pieces
$split -C 3 split-ex.txt $ls xa xaa xab xac xad xae xaf xag xah xai xaj $cat xab 2 $cat xac 3 $cat xaj 0 $cat xai 9 $cat xaa 1 $cat split-ex.txt 1 2 3 4 5 6 7 8 9 0 $rm xa xaa xab xac xad xae xaf xag xah xai xaj …
Continue reading “Example of split – split a file into pieces”
split
split – split a file into pieces.
code related to library libsrcinst
/* Find the length of STRING + 1, but scan at most MAXLEN bytes. Copyright (C) 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 3, or (at …
mountpoint
Mountpoint checks if the directory is a mountpoint.
mountpoint – see if a directory is a mountpoint
Mountpoint checks if the directory is a mountpoint. $mountpoint / / is a mountpoint $echo $? 0 $mountpoint /dev/ /dev/ is a mountpoint $echo $? 0 $mountpoint /media/ /media/ is not a mountpoint $echo $? 1 $mountpoint /store/ /store/ is not a mountpoint $echo $? 1 $mountpoint /etc/ /etc/ is not a mountpoint $echo $? …
Continue reading “mountpoint – see if a directory is a mountpoint”