What’s the difference between “dir” and “ls”?
I have compared the man pages of dir and ls and they seem to be exactly the same. Both are part of GNU coreutils and “list directory contents”.
I have compared the man pages of dir and ls and they seem to be exactly the same. Both are part of GNU coreutils and “list directory contents”.
I find that under my root directory, there are some directories that have the same inode number:
From POSIX 7:
I tend to use pipelines in my bash scripts over process substitution in most situations, especially in cases of using multiple sets of commands as it seems more readable to do ... | ... | ... over ... < <(... < <(...)).
I have a list of numbers in a file, one per line. How can I get the minimum, maximum, median and average values? I want to use the results in a bash script.
Zombie processes are created in Unix/Linux systems.
We can remove them via the kill command.
I have an Ubuntu server running on EC2 (which I didn’t install myself, just picked up an AMI). So far I’m using putty to work with it, but I am wondering how to work on it with GUI tools (I’m not familiar with Linux UI tools, but I want to learn). Silly me, I’m missing the convenience of Windows Explorer.
In a directory, I have files like
I have directory with cca 26 000 files and I need to grep in all these files. Problem is, that I need it as fast as possible, so it’s not ideal to make script where grep will take name of one file from find command and write matches to file. Before “arguments list too long” issue it took cca 2 minutes to grep in all this files.
Any ideas how to do it?
edit: there is a script that is making new files all the time, so it’s not possible to put all files to different dirs.
I use Ubuntu 15.10 and I’m very new in Linux. After reading in Wikipedia what is a symbolic link in general, and after executing a symlink creation command in the Ubuntu Unix-bash terminal, I ought to better understand the structure of a symlink I worked with several times when creating (and “destroying”) Ubuntu learning environments.