Operating Systems > Linux and UNIX
Possibly useful commands
H_TeXMeX_H:
I've had some trouble doing specific things on Linux in the past because I didn't know some rather important commands that everyone should know. Here are a few of them (I'll list more when I remember them):
--- Code: --- Ctrl Alt F1
--- End code ---
this logs you out bringing you to login: prompt, similar to Ctrl Alt Delete in Window$, but more useful. Do this when a program fails to respond and you have no way of reaching a terminal. It removes the need for hard reset.
--- Code: --- # /sbin/shutdown -r now
--- End code ---
this restarts the computer from the terminal
--- Code: --- # /sbin/shutdown -h now
--- End code ---
this shuts down the computer from the terminal
--- Code: --- $ ps -U $UID
--- End code ---
this lists all running processes that you have started
--- Code: --- $ kill -TERM ####
--- End code ---
here #### is a process id number, this terminates a process; use in combination with ps -U $UID
--- Code: --- $ cat file1 file2 file3 ... fileN > concatenatedfile
--- End code ---
the easiest way to join files.
--- Code: --- $ rpm2cpio name.rpm | cpio -id --quiet
--- End code ---
extracts an rpm
Besides these there are things like cd (change directory), ls (list contents of directory), find -type f (find all files in a directory) find -type d (all directories in a directory), ln (make symbolic links), rm (remove files) rm -r (remove directories), grep (find lines in a file), cp (copy files), mv (move or rename files), chmod (change permissions), chown (change owner), mkdir (make a directory) ...
ok well, that's more involved I suppose, but I can tell you it's real useful when GUI fails :D
Here's a nice guide to bash (you don't have to learn shell scripting, just pick things that may be of use, and if you want to, learning bash is not too hard either)
http://www.linuxcommand.org/learning_the_shell.php
and burning CDs and DVDs from the terminal may come in handy too:
http://yolinux.com/TUTORIALS/LinuxTutorialCDBurn.html
toadlife:
Wow. You didn't know any of those?
:eek:
Pathos:
err...
when I first really started getting into linux I went through every file in /bin and /usr/bin with --help and man to work out what they did. I forgot most but learnt all the ones I would need.
It was only Tomsrtbt and DSL but it had all the important ones.
H_TeXMeX_H:
--- Quote from: toadlife ---Wow. You didn't know any of those?
:eek:
--- End quote ---
Well ... no ... It was kinda hard to find them too, mostly by chance. Besides, the documentation I've found isn't too clear anyway. Oh, I forgot to tell you, I hate reading manuals. And where would you find Ctrl Alt F1 ? I found it while trying to install the non-free nvidia drivers manually.
piratePenguin:
--- Quote from: H_TeXMeX_H ---Well ... no ... It was kinda hard to find them too, mostly by chance. Besides, the documentation I've found isn't too clear anyway. Oh, I forgot to tell you, I hate reading manuals. And where would you find Ctrl Alt F1 ? I found it while trying to install the non-free nvidia drivers manually.
--- End quote ---
You would find it by understanding virtual terminals and the way X starts ;) (not something I'd expect people to know)
I was reading books bout GNU/Linux and the different commands before I ever installed it. Because I heard it's so hard, I thought I would need it. As it turns out, it's not that hard, but I still need it, because it makes life 100 times easier.
I don't even use a file manager anymore. What a waste of time :P
Navigation
[0] Message Index
[#] Next page
Go to full version