Find files by owner
Answer:
If you are only interested in finding files that belong to a particular user, try the command:
# find /data -type f -user john
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Find files by owner
Answer:
If you are only interested in finding files that belong to a particular user, try the command:
# find /data -type f -user john
Convert DOS/MAC to UNIX text file format converter
Answer:
Sometimes if a file was edited on Windows, and you might find strange characters "^M" occur at the end of every line when you open in vim under Linux, you can use the dos2unix command to reformat the file format to remove them.
E.g.
# dos2unix input.pl output.pl
Find the number of running processes on your system
Answer:
With a simple command, you can find the number of running processes on your system.
# ps ax | wc -l | tr -d " "
64
Show current Linux distribution and version information
Answer:
Try the following command in shell.
# head -n1 /etc/issue
Ubuntu 8.10 \n \l
How to display the current runlevel in RedHat/Fedora
Answer:
# /sbin/runlevel
N 3
3 is the current runlevel, and N means no previous runlevel