I use Ubuntu Linux, and I'd like to become more familiar with the CLI. I have these questions:
1) How to remove a directory that is not empty? The only option in man rmdir is -p and that does not do what I need. rm -R needs sudo for some reason.
Quote:
2) What is a CLI command to make all the files in a directory 644, and all the directories 755 (recursive to subdirectories)?
Quote:
3) Some directories are listed as:
1 byte
8 byte
16 byte
32 byte
40 byte
4 KB
8 KB
This size has nothing to do with what is in them, either. What makes the different directories show as different sizes?
The size of the directory entry, which includes all the file names.
I have need of starting the app manager or what ever it is called from the CLI.
I can start the text editor and file manger i.e. dtpad, dtfile & dtmail etc...
But I have forgotten the command to start the app manager.
Help!!!!
:D (1 Reply)
When I say "Command Line Interface" I mean the wrapper that allows you to type "commands" and have then correspond to pre-programmed actions... all the while making sure that it looks like you are INSIDE a shell of sorts.
I had good hope for "common.cli" but that didnt last long, when I found... (1 Reply)
Hi all,
Am trying to develop CLI kind of program which does a telcom switch configuration . I have to provide a terminal and a prompt to user for that I did following:
static struct termios old_term;
struct termios new_term;
tcgetattr(STDIN_FILENO, &old_term);
new_term = old_term;
... (3 Replies)
1.) I am to write scripts that will be phasetest folder in the home directory.
2.) The folder should have a set-up,phase and display files
I have written a small script which i used to check for the existing users and their password.
What I need help with:
I have a set of questions in a... (19 Replies)
Hi, Hoping someone out there has seen this before.
My backup/restore operation failed when my system ran out of memory
Restore operation failed
Setting ZFS Boot Environment to rootpool
cannot set property for 'rootpool': out of space
Installing GRUB Boot Loader into the first disk
stage1... (2 Replies)
Hi,
I was not sure about the terminology of the thing that I am about to explain, so it was very difficult to find relevant search results.
I want to use my computer using the ctrl+alt+f1 CLI without using a graphical system. However, at the same time, I would also like to do basic tasks like... (6 Replies)
I am writing a script to login to to a mongo DB node and get the status of that machine. The usual work flow is :
# mongo admin -u root -p root
MongoDB shell version: 3.0.11
connecting to: admin
rs0:SECONDARY>
Then in the new prompt I can run a command to check status :
... (0 Replies)
I prefer for my computers to boot in the CLI. Back in the day, all you had to do to make this happen (on Debian-based) was edit a line in /etc/default/grub and then run:
sudo update-grub
But for some reason now, more updated (I guess) operating systems won't accept this, you have to manually shut... (2 Replies)
Discussion started by: Huitzilopochtli
2 Replies
LEARN ABOUT BSD
rm
RM(1) General Commands Manual RM(1)NAME
rm, rmdir - remove (unlink) files or directories
SYNOPSIS
rm [ -f ] [ -r ] [ -i ] [ - ] file ...
rmdir dir ...
DESCRIPTION
Rm removes the entries for one or more files from a directory. If an entry was the last link to the file, the file is destroyed. Removal
of a file requires write permission in its directory, but neither read nor write permission on the file itself.
If a file has no write permission and the standard input is a terminal, its permissions are printed and a line is read from the standard
input. If that line begins with `y' the file is deleted, otherwise the file remains. No questions are asked and no errors are reported
when the -f (force) option is given.
If a designated file is a directory, an error comment is printed unless the optional argument -r has been used. In that case, rm recur-
sively deletes the entire contents of the specified directory, and the directory itself.
If the -i (interactive) option is in effect, rm asks whether to delete each file, and, under -r, whether to examine each directory.
The null option - indicates that all the arguments following it are to be treated as file names. This allows the specification of file
names starting with a minus.
Rmdir removes entries for the named directories, which must be empty.
SEE ALSO rm(1), unlink(2), rmdir(2)4th Berkeley Distribution April 29, 1985 RM(1)