AboutWelcome to Free Software Daily (FSD). FSD is a hub for news and articles by and for the free and open source community. FSD is a community driven site where members of the community submit and vote for the stories that they think are important and interesting to them. Click the "About" link to read more...
If you spend any length of time in the shell, chances are you've typed the same commands over and over. It's usually not anything you can necessarily script as the commands may vary slightly on each invocation, but there are certain commands that can be used often with a little variation on each call.
If you're like me and work for a company who has many linux admins all logging into servers and then su'ing to root, you may find this tip beneficial. It is simply 3 lines that you add to root's .bash_profile which will keep separate history files for each admin that su's to root and the commands they ran. It will allow you to go back and see what the user did as root.
Almost every Linux website seems to have a list of the "best command line commands". Sometimes they get them wrong. Here is a list of useful commands that I came up with by looking at my 'history' file.
When you are new to Linux you often seek to get help from others and almost most of the advices you get will be in the form of some commands such as ps, top, modprobe, lspci etc. Be careful when you run these commands as some Anti-Linux a**holes try to fool new Linux users in the name of tips and tutorials.If after following such command(s), you lose all your files, no one is to be blamed but you.
Running commands one right after the other can be a tedious way to get things done from the shell. What if there was a way to "chain" these commands together? Well fortunately Linux provides some ways to allow you to type in a bunch of commands at the prompt and run them as if it was one command.
Bash / CSH shell offers command history feature. Most of you may be aware and using of UP / DOWN arrow keys to recall previous commands. History expansions introduce words from the history list into the input stream, making it easy to repeat commands, insert the arguments to a previous ommand into the current input line, or fix errors in previous commands quickly.
If you are new to Linux, chances are you will meet a stupid person perhaps in a forum or chat room that can trick you into using commands that will harm your files or even your entire operating system. To avoid this dangerous scenario from happening, I have here a list of deadly Linux commands that you should avoid...
Perhaps your company is just switching to Linux, to save on costs. Or, maybe you’re starting University, and you have no idea how to get around the Linux Systems they’ve just installed. Or if you’re like me, you’re curious about how Linux works, and you have it installed at home.
While a few commands, such as 'cd' are built directly into bash; many of the most important commands come from coreutils, a GNU package containing over a hundred commands.