Q. Can you explain the exit status of shell and commands under Linux / UNIX operating system?
Continue reading “Shell: How to determine the exit status of Linux and UNIX command”
Both Linux and Unixish provides command to find file. The best and easy way to find file is to use command called locate. It list files in databases that match a pattern. For example to find file called myprog.c you need to use locate command as follows:
$ locate myprog.c | less
Another option is to use find command. For example find out all C source code file from /home/jerry directory:
$ find /home/jerry -name “*.c” -print
$ find ~jerry -name “*.c” -print
Please note that ~jerry is short-cut name to refer user jerry’s home directory (/home/jerry). FIND command has very advance usage please see following articles for more information:
ow can I compress a whole directory under a Linux / UNIX using a shell prompt?
am a new Linux user and can you tell me a command name to change the default login shell in Linux or UNIX operating system?
How do I setup date and time in FreeBSD operating system at a shell prompt?
hat are the exit statuses of ssh command on a Linux or Unix like system when you run ‘ssh host command
ow do I open rar archive files under a Linux or UNIX or macOS X operating system?