Skip to main content

Unix

How can I check how much disk space I'm using? Is there a command to check how much disk space is being used by a user?

You can check your quota usage with the "chkquota" command. You can find out how much disk space is in a particular directory (such as someone's home directory) with the command du -sk, if you have permissions on that directory -- if it's yours or if it's world-readable.

How can I create a new group?

New UNIX groups, for the most part, are only created for "official" department purposes (students working together in a class created at the request of the professor, for example). If you have a reason to need a group, Email help@cs.utexas.edu, giving the name of the group you want, the login names of the people who need to be in it, and the purpose of the group. The group, if approved, will be created within one or two business days.

How can I convert a postscript file into a graphics file such as a GIF? How can I convert between graphical file formats?

The ImageMagick suite is capable of all types of conversion. Using it is simple: convert originalfile.format newfile.newformat convert automatically determines the original filetype from the file itself and chooses the output format based on the file extension you provide for the newfile. For example, convert file.ps file.gif will convert the file from postscript to GIF. see the convert(1) man page for more information on the formats it supports.

How do I find a process I know I must have running that I can't see? How do I get rid of a process I don't want?

To find a runaway process, use the ps command. On linux machines type ps -augx. The man pages (man ps) show all possible flags.

To kill a process once you've found its process ID (PID), type "kill PID". If that doesn't work, you can use "kill -9 PID". If you need to kill all your processes, you can use "killall -u 'login name'"

How do I remove or access a file with the name '-something' or containing another strange character ?

If your file starts with a minus, use the -- flag to rm; if your file is named -g, then your rm command would look like rm -- -g. As well, and especially if you have an unprintable character (output from ls looks like ?ile) you might try something like rm -i ./*ile which will also work for commands other than rm (grep for instance).

I like being able to use emacs or vi style key bindings (keyboard shortcuts) to navigate while typing in applications other than those editors. How can I do this?

That functionality is typically provided by the GNU Readline Library, which is used by many applications such as shells (bash, tcsh, zsh), mailreaders (mutt) and many others. However, some applications are not readline-aware but fear not, there is a way to make them behave like they are! We have installed the program rlwrap which provides readline functionality to any text input program.

I just accidentally deleted something I need (or just realized I need something I deleted a while ago). What can I do now?

First, you should try recovering the file from snapshots yourself; to learn how view the documentation on recovering files from snapshots. If that fails, email help@cs.utexas.edu and ask them to restore your files. Include the following information:

  • When did you delete the file(s)?
  • When did you create the file(s)? ("Not recently" is enough)
  • When did you last change the file(s), before the day you deleted it/them?